diff --git a/variables.js b/variables.js index 2d8a281..0f44cd3 100644 --- a/variables.js +++ b/variables.js @@ -15,7 +15,10 @@ 2. Use console.log() to output the value of each variable. ********************************************************************************/ // TODO: ADD YOUR CODE BELOW - +let personName="Abbas Abd Alusain"; +let age=30; +let isHappy =true; +console.log(personName +'\n'+age+'\n'+isHappy); /******************************************************************************* Task 2 (Reassigning variables): @@ -24,7 +27,8 @@ 2. Use console.log o output the value of 'nickName' *******************************************************************************/ // TODO: ADD YOUR CODE BELOW - +let nickName=personName; +console.log (nickName); /******************************************************************************* Task 3 (Naming variables): @@ -33,7 +37,8 @@ 2. Declare a variable that stores the age of a user. What name would you choose for this variable? *******************************************************************************/ // TODO: ADD YOUR CODE BELOW - +let myFavorateMovie="resala"; +let userAge; /******************************************************************************* Task 4 (String Concatenation): Build upon the previous task by completing the following steps: @@ -48,3 +53,7 @@ Steps: - Print the final message to the console, including the personName in uppercase in this format `Dear personName_VALUE, here's your message: finalMsg_VALUE.`. *******************************************************************************/ // TODO: ADD YOUR CODE BELOW +let msg; +msg = prompt("Enter your Name : "); +let finalMessage=msg.concat("And btw, Why are you happy?"); +console.log(finalMessage.toUpperCase()); \ No newline at end of file