Writing first JavaScript program
📖 Scenario: You want to create a simple program that greets a user by name. This is like saying hello to a friend when you meet them.
🎯 Goal: Build a JavaScript program that stores a name, creates a greeting message using that name, and then shows the greeting on the screen.
📋 What You'll Learn
Create a variable to store a name
Create a variable to store a greeting message using the name
Display the greeting message using
console.log💡 Why This Matters
🌍 Real World
Greeting users by name is common in websites and apps to make them feel welcome.
💼 Career
Knowing how to create variables, use strings, and display output is the foundation of programming in JavaScript.
Progress0 / 4 steps