
JSA Checkpoint 2
Authored by Tran Hung
others
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giả sử bạn lưu một đối tượng vào localStorage như sau:
Cách nào đúng để lấy dữ liệu và in ra name?
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Hãy cho biết kết quả của đoạn code sau:
Hiển thị tiêu đề của bài viết đầu tiên từ API
Lỗi "Error fetching data"
Hiển thị undefined
Không có gì được in ra
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của đoạn code trên khi form đăng ký được submit
In ra
userName
passWord
emai
In ra undefined
Error
In ra khoảng trắng
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Cho đoạn mã sau:
Giá trị của biến result sau khi đoạn mã trên được thực thi là gì?
(Chỉ nhập kết quả cuối cùng)
(Ví dụ: result = 10 --> Chỉ cần nhập 10)
(a)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để xóa toàn bộ các dữ liệu trong LocalStorage ta sử dụng cú pháp gì?
localStorage.clear()
localStorage.removeItem("key")
localStorage.getItem("key")
localStorage.delete()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Tại sao chúng ta lại sử dụng câu lệnh:
event.preventDefault();
Để ngăn website tự động load lại khi form được submit
Để chúng ta viết đúng cú pháp
Để tự động nhận dữ liệu
Tất cả đều sai
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Cho đoạn code sau:
let a = "abc"
Hãy điền vào ... câu lệnh in ra độ dài của chuỗi a
console.log(...)
(a)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?