Function is reserved word


#1

Hello,
I am using javascript (made my file .js when creating) and everything works fine except for function.

square = function(x) {
  return x+3
}

Yet whenever I reload a red error message says reserved word “function”


#2

You’ll have to give a little more context for people to be able to help you. What is it you’re trying to do?


#3

Closing this topic since you say that your newest topic supersedes this one:


#4