5. Trying it all together


#1



I need help.
Here is the error i keep getting.

Did you fix the definition of the greeting function?


var greating=function(name){
console.log("hello"+""+name);
}; 
greeting("name")


#2

Hi this part

var greating=function(name){

you wrote greating instead of greeting


#3

Oh! Oops. Thanks for your help.


#4

Hello.
Need Help I don't understand this topic kindly please explain.
Thanks
Prithvi Prakash


#5

Hi the lesson begin with that part of code like that

greeting var func{name}(console.log(name)))}

the instruction says..

2 Fix the function on line 9. Make sure the syntax is right. Make sure it looks nice.

the name of the function is greeting so you could do the function like that

var greeting = function() {
    #do something
}

or

function greeting() {
    #do something
}

the argument of the function is name
so it should be like that

var greeting = function(name) {
   #do something
}

then you should put inside the function

console.log(name)

like that

var greeting = function(name) {
   console.log(name)
}

then you should call the function greeting

Hint

greeting("here type your name")


#6

This is the correct code....

var greeting=function(name){
console.log("hello"+""+name);
};
greeting("name")