Difficulty Rating: 1/5
See the Pen 42fdcc5a847fe8ddc6dea27145d1cda0 by Fullstack Academy (@FullstackAcademy) on CodePen.
There are two different outputs
'Hello, '+ name + '!';
'Hello!';
EX: If the condition is true , run a block of code, if the condition returns false , run a different block of code.
if/else statement? The condition should test if an argument (the name) is passed to the greeting function. Review the idea of truthy and falsy values. greeting function. If an argument is passed, return the string:
'Hello, '+ name + '!';
'Hello!';