3/13


#1

keeps saying error please send the code if you passed so i can see the problem


#2

If you send your code, I can tell you what's wrong and fix it. :smile:


#3

Just comment here...


#4

He probably fixed it


#5

He probably fixed it


#6

var greeting = function (James); {
console.log("Great to see you, " + " " + James);
};


#7

same error keeps coming up


#8

No semicolon between () and {.


#9

var greeting = function (name) {
console.log("Great to see you," + " " + name);
};


#10

really getting tired of this errors...

same error..telling me syntax error


#11

Syntax errors are real errors concerning the syntax of your code so they are not thrown by th author but by the javaScript interpreter. So it's highly necessary that you post your code instead of just complaining about them. You may always try to refresh the page if you think your code is correct, but if it then does not work and tells you "syntax error" than as said there is a real bug in your code.


#12

Here are my codes

var greeting = function (name) {
console.log("Great to see you," + " " + name);
};

// On line 11, call the greeting function!
var greeting = function ("David")
{
console.log("Great to see you," + " " + david);
};

how can i put it right?
thank you


#13

Why do you have 2 greeting function? The first seems to be correct call it with greeting("david") and it should work. In the second you tried to use a value as parameter which gives you the syntax error. after function() inside the () it is either expected to use nothing or a variable name. This variable then behaves like a local variable of the function and get's it's value assigned by the function call so in the case above by calling greeting("david") you made name be an alias for "david" so console.log("Great to see you," + " " + name); prints "Great to see you, david".


#14

thank you haxor789 but im still experiencing the same error.

Now i had to reset and here are the codes below; kindly help with this

// Below is the greeting function!
// See line 7
// We can join strings together using the plus sign (+)
// See the hint for more details about how this works.

var greeting = function (name) {
console.log("Great to see you," + " " + name);
};

// On line 11, call the greeting function!


#15

Seems to be ok just need to call it I guess:

greeting("manniebeenie");

#16

thank you haxor789
got it right now


#17

I had the same problem. And all this time I only needed

greeting('Kay");

Thanks haxor789