Write small pieces of JavaScript code that will accomplish the following: Declare a variable with the identifier age . Declare three variables with the identifiers a , b , and c using three separate...


Write small pieces of JavaScript code that will accomplish the following:



  1. Declare a variable with the identifierage.

  2. Declare three variables with the identifiersa,b, andc using three separate statements (lines).

  3. Declare three variables with the identifiersx,y, andz using a single statement.

  4. Declare a variable that represents the total number of spoons that a person has in their collection. You should choose a meaningful identifier using good style practices to improve readability.

  5. Declare a variable that represents the total gross domestic box office receipts for the top film this year. You should choose a meaningful identifier using good style practices to improve readability.

  6. Declare a variable with the identifieryear and assign it the value of the current year.

  7. Declare a variable with the identifiername and assign it the literal value of your first and last name.

  8. Declare two variables with the identifiersi andjand assign each of them numbers between 1 and 10 using two separate statements (lines).

  9. Declare two variables with the identifiersm andn and assign each of them a boolean value of your choice using a single statement.

  10. Declare a variable with the identifiersentenceand assign it a value of a String literal containing the text "line 1 line 2 line 3" which uses escape sequences to separate its contents across three different lines.



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here