Javascript Primer Quiz - Numbers

How many of these are a number in JavaScript?

let answer

      
        tests({
          'answer is correct': (t) => {
            t.isEqual(answer, 3, `${answer === undefined ? "You haven't submitted an answer yet" : "Not quite, try again"}`)
          }
        })
      

Which of the following would best be represented using a number?

  1. The length of a movie in minutes
  2. An email address
  3. Whether it is raining or not
        let answer
        
        tests({
          'answer is correct': (t) => {
            t.isEqual(answer, 1, `${answer === undefined ? "You haven't submitted an answer yet" : "Not quite, try again"}`)
          }
        })
    

What is the result of the following?

let num = 5 * 5
    
        let answer
        
        tests({
          'answer is correct': (t) => {
            t.isEqual(answer, 25, `${answer === undefined ? "You haven't submitted an answer yet" : "Not quite, try again"}`)
          }
        })
    

What is the symbol used to represent division in JavaScript?

  1. %
  2. รท
  3. *
  4. /
 let answer
 
       
         tests({
           'answer is correct': (t) => {
             t.isEqual(answer, 4, `${answer === undefined ? "You haven't submitted an answer yet" : "Not quite, try again"}`)
           }
         })
       

Onwards!

You've completed the Numbers section of the quiz! Now, click here to continue to the Strings section.