The exercise was to write the following variables:
A number called myNumber which contains the number
A string called myString which contains the sentence
Variables are great.;
A boolean called myBoolean which contains the value
It was much harder than yesterday to write
"Hello, World!". But finally I came up with this code:
1 var myNumber=4; 2 var myString="Variables are great."; 3 var myBoolean=false; 4 console.log("myNumber is equal to " + myNumber); 5 console.log("myString is equal to " + myString); 6 console.log("myBoolean is equal to " + myBoolean);
Did I write it correctly?
PS I didn't know how to do single spaced code in Markdown. Any suggestions?