Calling the Name function


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/3?curriculum_id=506324b3a7dffd00020bf661#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
This code is not calling my name into the functoin.

```

var nameString = function (name) {

return "Hi, am" + " " + name;

};

nameString(Nick);

console.log(“Hi, I am” + " " + name);

<do not remove the three backticks above>

#2

nameString(Nick);

Nick is a string value.we need "" for string.

and call the function inside console.log .
for example:

console.log(x(argument)) // here x is a function name

you don’t need the last line of code.


#3

Sorry but i am still not following you.

https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/3?curriculum_id=506324b3a7dffd00020bf661

var nameString = function (name) {
return “Hi, I am” + " " + name;
};

nameString(Nick);


#4

nameString(Nick);

Nick should be inside "" .

what is Nick? is Nick a variable or string?

string value should be inside of quotation marks.you can use single('') or double("") .

for example:

x="bob" // bob is a string value so we need quotation marks for it.

now call the function inside console.log().I already told about it.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.