- Create the following folder/file structure:
/ex_1
|-- index.html
- Create a basic HTML document
- Create a script tag on the document head element
- Define a firstName and lastName variables and assign your first and last name
- Using console.log show the following message as output:
Welcome to the browser %firstName% %lastName% again!!
- Start the http-server inside this folder
http-server
- Open the browser and navigate to http://localhost:8080
- Open the developer tools
- Check out your message
- Now change the first and last name values, save the file and resfresh the browser document to se the change