AscalifyCodeLibs
Back to JavaScriptJavaScript → VariablesQuestion 1 of 4
Hello Name
Variables
Using the given `name`, print `Hello, <name>` with a block-scoped variable (`let` or `const`).
Example 1:
Input: name = "Alice"
Output: Hello, Alice
Explanation: Store a greeting with the given name and print it.
Example 2:
Input: name = "Bob"
Output: Hello, Bob
Example 3:
Input: name = "Sam"
Output: Hello, Sam
Code
Testcase / Output
Default testcase
name = Alice
Expected output
Hello, Alice
Returned results
Click Run to execute your code against the testcase.