Data Types: Part I

Descrição

Quiz sobre Data Types: Part I, criado por Code Ramp em 12-06-2018.
Code Ramp
Quiz por Code Ramp, atualizado more than 1 year ago
Code Ramp
Criado por Code Ramp mais de 8 anos atrás
458
0

Resumo de Recurso

Questão 1

Questão
Which of the following is not a JavaScript primitive data type?
Responda
  • Boolean
  • String
  • Decimal
  • Number

Questão 2

Questão
Given the string 'Hello world!', how would you find out how many characters are in the string?
Responda
  • 'Hello world!'.length
  • 'Hello world!'.len
  • 'Hello world!'.long
  • length('Hello world!')

Questão 3

Questão
Given the string 'Hello world!', which index is the letter 'e' found at?
Responda
  • 0
  • 1
  • 2
  • 3

Questão 4

Questão
What does the special character` \n` do?
Responda
  • Creates a new line in the string.
  • Makes it so our output skips the letter n.
  • Allows us to include quotes inside a string.

Questão 5

Questão
Which of the following are valid operators in JavaScript?
Responda
  • %
  • +
  • /
  • **