Hannah está aprendendo JavaScript e quer declarar uma variável para armazenar a idade dela. Qual é a sintaxe correta para fazer isso?

Quiz de JavaScript Básico

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
RAMIEL DUARTE NRE CURITIBA
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`var minhaVariavel`
`variavel minhaVariavel`
`let minhaVariavel`
`const minhaVariavel`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você pode adicionar um comentário de uma linha em JavaScript?
``
`// Este é um comentário`
`/* Este é um comentário */`
`# Este é um comentário`
Answer explanation
Em JavaScript, comentários de uma linha são feitos usando `//`. O texto após `//` na mesma linha é ignorado pelo interpretador. As outras opções não são válidas para comentários de uma linha em JavaScript.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o operador de adição em JavaScript?
`+`
`-`
`*`
`/`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código JavaScript? ```javascript console.log(3 + 4); ```
`34`
`7`
`NaN`
`undefined`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual método é usado para exibir uma mensagem no console em JavaScript?
`alert()`
`console.log()`
`print()`
`write()`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a estrutura correta de um loop `while` em JavaScript?
`while (i < 5) { i++; }`
`while i < 5 { i++; }`
`while (i < 5) i++;`
`while (i < 5) { }`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código JavaScript? ```javascript console.log(typeof "Hello"); ```
`string`
`object`
`undefined`
`number`
Create a free account and access millions of resources
Similar Resources on Quizizz
5 questions
3TDS - Programação Mobile - Aula 07

Quiz
•
12th Grade
11 questions
Quiz aula 3

Quiz
•
9th - 12th Grade
10 questions
Aula 09

Quiz
•
9th - 12th Grade
15 questions
Quiz de Programação e Scratch

Quiz
•
12th Grade
10 questions
Quiz 2 (Estrutura e Características de um Algoritmo)

Quiz
•
9th - 12th Grade
8 questions
Javascript Intro Parte II

Quiz
•
12th Grade
10 questions
JavaScript: Aula 01

Quiz
•
9th - 12th Grade
10 questions
3TDS - Programação Backend - Aula 20

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University