Search Header Logo

Frontend_ReactJS_SS1

Authored by haibt@rikkei.edu.vn rikkei

Information Technology (IT)

University

Used 14+ times

Frontend_ReactJS_SS1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Điều nào sau đây là đúng về let và const trong JavaScript?

let dùng để khai báo hằng số, còn const cho biến thay đổi

let và const đều có phạm vi block scope

const có thể được gán lại giá trị mới

let có phạm vi global như var

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn code sau là gì?

Xin chào, $name!

Xin chào, name!

Xin chào, Hihi!

Xin chào, {name}!

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là cú pháp đúng của một arrow function?

function => (x) { return x + 1; }

(x) => x + 1

=> x + 1

(x) => { return; x + 1; }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

[1, 2]

1 2

1 undefined

undefined 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

undefined

Anna

name

{ name: "Anna" }

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả đoạn mã sau là gì?

[a, 3]

1,2,3

[ [1,2], [3] ]

[1, 2, 3]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn nào sử dụng đúng rest parameters trong hàm?

function sum(...numbers)

{

return numbers.length; }

function sum(a, b, c...) {}

function(...args) => args

function sum([...args])

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?