Practice writing basic JavaScript syntax including variables, arithmetic operations, and console output.
- Clone this repository to your local machine.
- Create a file named
script.js
.
- Write a JavaScript statement to create a constant named
greeting
with the value 'Hello, world!' and display it usingconsole.log()
. - Create two constants,
number
andanotherNumber
, assign numerical values to them, and display their sum. - Write an 'if-else' statement to check if a variable
name
is equal to 'Alice'. If true, display 'Hello Alice!', otherwise display 'You are not Alice'.
Commit and push your script.js
file to this repository. The file should contain the JavaScript code for the above tasks.