output in javascript 1

output in javascript

console.log("Who's Joe?")

Here is what the above code is Doing:
1. We’re creating a variable called “name” and setting it equal to a prompt that asks the user for their name.
2. We’re creating a variable called “message” and setting it equal to a string that says “Hello, [name]!”
3. We’re creating a variable called “alert” and setting it equal to a string that says “Who’s Joe?”
4. We’re logging the value of the “message” variable to the console.
5. We’re logging the value of the “alert” variable to the console.

Similar Posts