
JSA Checkpoint 2

Quiz
•
others
•
12th Grade
•
Hard
Tran Hung
Used 1+ times
FREE Resource
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)
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(...)
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for others
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade