Skip to main content

Exercise 39

  • Create a new index39.js file
  • Define a firstName variable and assign your name as it's value
  • Define a lastName variable and assign your last name as it's value
  • Show the following output:
    • My first name is %firstName% and it is %nameCharacters% characters long
    • My last name is %lastName% and it is %lastNameCharacters% characters long
    • The character difference between my first name and last name is %charsDiff%
    • My first name is longer than my last name: true or false