SyntaxError: Unexpected string


#1

// This is what a function looks like:

var divideByThree = function ("dry") {
var val = 3 / 3;
console.log(val);
};

// On line 12, we call the function by name
// Here, it is called 'dividebythree'
// We tell the computer what the number input is (i.e. 6)
// The computer then runs the code inside the function!
console.log(function dry);


#2

No strings as a parameter in a function.