Functions Recap


I'm having a problem with my codes

please help anyone that might know my problem

var nameString = function (name) {
return "Hi, I am" + " " + name;
console.log nameString(Bub)

Says Syntax error PLeASe HElp Me


that is not how it look on the real thing but its a example of what i did

didnt add the spacing in this post


console.log() requires parentheses, its a function call

also, when calling nameString, this should happen outside/after the function given a function call executes the function


thanks for the help, seems like im missing simple mistakes :smiley:


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