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”
Code the following exercises using javascript. 1) VERY EASY: Create two variables and assign a number to each. Console
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am