console.log("Hello World")alert("Hello World")console.log() and alert() — print each one separately.let to declare and assign variables in JavaScript.let).Task 1:
Declare three variables: admin, name, and host.
Assign the value "Ram" to name.
Copy the value from name to admin.
Copy the value from admin to host.
Finally:
alert the value of adminconsole.log the values of name and host.varvar is the old way to declare variables in JavaScript.var anymore in modern JavaScript; prefer let and const.let can have their values changed as many times as needed.