Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Javascript, Level 8 > Lesson 5

I have written the correct code and the output is also correct but the test is not getting submitted,
Due to this I cannot visit the other chapters this is bad.
by

1 Answer

sam5epi0l
Thanks for letting us know. Can you share the code you used? It will be helpful for improving the experience.

Meanwhile, you can move forward with this code:

function greet(name="NULL")
{
if(name!="NULL")
{
console.log("Hello "+name+"! Thanks for joining us.");
}
else {
console.log("What is your name?");
}
}
// call the function
greet("dd");

Login / Signup to Answer the Question.