Erros em Funções de JS

Erros em Funções de JS

12th Grade

15 Qs

quiz-placeholder

Similar activities

KUIS PEMANTIK PPKN

KUIS PEMANTIK PPKN

9th - 12th Grade

20 Qs

Pensamento computacional 9°A

Pensamento computacional 9°A

10th - 12th Grade

10 Qs

Imperialismo e I Guerra Mundial

Imperialismo e I Guerra Mundial

9th - 12th Grade

13 Qs

APWORLD TOPIC 1.3

APWORLD TOPIC 1.3

10th Grade - University

19 Qs

Anatomy of the Constitution

Anatomy of the Constitution

12th Grade

15 Qs

Landmark of Indonesia

Landmark of Indonesia

1st Grade - University

10 Qs

 Portugal, PALOP e CPLP

Portugal, PALOP e CPLP

12th Grade

15 Qs

ISEED Mencari Bakat 3

ISEED Mencari Bakat 3

1st - 12th Grade

15 Qs

Erros em Funções de JS

Erros em Funções de JS

Assessment

Quiz

History

12th Grade

Hard

Created by

Ryan Castro

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para declarar uma função em JavaScript?

`function myFunction { }`

`function myFunction() { }`

`function: myFunction() { }`

`myFunction() function { }`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código JavaScript? ```javascript function add(a, b) { return a + b; } console.log(add(2, 3)); ```

`23`

`5`

`undefined`

`NaN`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para uma função anônima em JavaScript?

`function() { }`

`function { }`

`() function { }`

`function: { }`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código JavaScript? ```javascript function multiply(a, b) { return a * b; } console.log(multiply(4, 5)); ```

`20`

`9`

`45`

`undefined`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para uma função de seta (arrow function) em JavaScript?

`let myFunction = () => { }`

`let myFunction = function => { }`

`let myFunction = () -> { }`

`let myFunction = function() => { }`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código JavaScript? ```javascript const square = (x) => x * x; console.log(square(3)); ```

`6`

`9`

`3`

`undefined`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código JavaScript? ```javascript function greet(name) { return "Hello, " + name + "!"; } console.log(greet("Alice")); ```

`Hello, Alice!`

`Hello, !`

`Hello, Alice`

`undefined`

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?