Qual é a sintaxe correta para declarar uma variável em JavaScript?

Quiz sobre JavaScript para 9º Ano

Quiz
•
Information Technology (IT)
•
9th Grade
•
Hard
LEANDRO CARDOSO
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`var nome = "João";`
`variable nome = "João";`
`v nome = "João";`
`declare nome = "João";`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você cria uma função em JavaScript?
`function minhaFuncao { }`
`function minhaFuncao() { }`
`func minhaFuncao() { }`
`createFunction minhaFuncao() { }`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o resultado de `2 + "2"` em JavaScript?
`4`
`22`
`NaN`
`undefined`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```javascript let x = 5; if (x > 3) { x = 10; } console.log(x); ```
`3`
`5`
`10`
`undefined`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a diferença entre `let` e `var` em JavaScript?
`let` tem escopo de função, enquanto `var` tem escopo de bloco.
`let` tem escopo de bloco, enquanto `var` tem escopo de função.
Não há diferença.
`let` é usado para constantes, enquanto `var` é usado para variáveis.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você chama uma função chamada `minhaFuncao` em JavaScript?
`call minhaFuncao();`
`minhaFuncao();`
`execute minhaFuncao();`
`run minhaFuncao();`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```javascript function soma(a, b) { return a + b; } console.log(soma(2, 3)); ```
`2`
`3`
`5`
`undefined`
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Aula 5

Quiz
•
9th - 12th Grade
10 questions
JS Quiz

Quiz
•
6th Grade - University
10 questions
Aula 09

Quiz
•
9th - 12th Grade
9 questions
Викторина без названия

Quiz
•
6th Grade - University
15 questions
Matriz de LED

Quiz
•
9th Grade
15 questions
Retomada 9ano aula 2 Desenhando com JavaScript

Quiz
•
9th Grade
10 questions
Quiz aula 7

Quiz
•
9th - 12th Grade
10 questions
Quiz aula 8

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade