Page 1 of 1

Code the following exercises using javascript. 1) VERY EASY: Create two variables and assign a number to each. Console

Posted: Fri Jul 01, 2022 5:41 am
by answerhappygod
Code the following exercises usingjavascript.
1) VERY EASY: Create two variables and assign a number to each.Console log the difference between the numbers. Example output:“The difference between 6 and 2 is 4”
2) EASY: Create two variables and assign a person’s name toeach. Console log a statement that says which name is shorter orlonger, and by how many characters. Example output:“The name Thomas is longer than John by 2 characters”