DEV
Developer Toolbox
×
INPUT AREA
➜
⬅
OUTPUT AREA
TEXT CASE
UPPER
lower
Capitalize
Title Case
FORMAT & CLEAN
Trim
Slug
Strip HTML
Reverse
ENCODE & DECODE
B64 Enc
B64 Dec
URL Enc
URL Dec
JSON & CRYPTO
JSON Beauty
JSON Mini
MD5
SHA256
Tất Cả Khoá Học
Frontend
Học HTML5 - CSS3
Học Bootstrap
Học JS
Học JQuery
AngularJS
ReactJS
Java
Java Basic
Java Advanced
JSP Servlet
Java Web + EJB (EAD)
Java Web + WebService
Java Web + EA
Spring MVC
Mobile
Lập Trình Android Java
Lập Trình Flutter
CSDL
SQL Server/MySQL
Khác
Lập Trình C
C Sharp
Học PHP
Học Laravel
Git/Github
Blog
Jobs & Lập Trình Thời AI
Tin Tức & Công Nghệ
Review Công Nghệ
Phần Mềm & Tiện Ích
Trắc Nghiệm & Học Sinh
Thông Tin Hữu Ích
Quiz
Nhận Dự Án
Liên Hệ
Đăng nhập
QL - Bài Tập & Khoá Học
Tiếp Thị Liên Kết
Thoát
Light
Dark
Auto
Menu
Khai báo biến & hàm mặc định trong Javascript
Video
Tạo dự án JS đầu tiên - Lập Trình JS
Video
Khai báo biến - toán tử - Lập Trình JavaScript
Video
Các hàm sẵn có trong js - Khoá Học Lập Trình JS
Tạo máy tính + - * / trong Javascript - Tạo máy tính căn bản cộng trừ nhân chia bằng Javascript - Sử dụng function trong Javascript
Mệnh đề điều kiện
Video
Cấu trúc điều kiện if else switch - Lập trình Javascript
Bài tập - Tìm số lớn nhất - Lập trình Javascript
Giải phương trình bậc nhất bằng Javascript
Giải phương trình bậc 2 bằng javascript - giải phương trình bậc hai bằng Javascript
Bài tập - Giải phương trình bậc nhất ax + b = 0
Bài tập - Giải phương trình bậc 2 ax2+ bx + c = 0
Vòng lặp for, while, do..while
Video
Tìm hiểu vòng lặp for, while, do .. while trong Javascript
Tính giai thừa N! trong Javascript
In tam giá * trong Javascript - in tam giác hình * trong Javascript - in tam giác hình sao trong Javascript
Array & Function & Object
Video
Tìm hiểu Function trong Javascript
Bài tập ôn luyện Function - Lập trình Javascript
Video
Tìm hiểu Array trong Javascript
Video
Khai báo Object trong Javascript
Video
Gửi giữ liệu qua các trang html bằng javascript - HTML/CSS
Bài tập - ôn tập mảng - quản lý sinh viên - Lập trình Javascript
Video
Bài tập - ôn tập mảng - quản lý sinh viên - Lập trình Javascript
Video
Khai báo function trong Object - Lập trình Javascript
Video
Tìm hiểu function trong string - Lập trình Javascript
Tìm hiểu về kiến thức Object và Array & localStorage trong JS - Khoá học Javascript
Xử lý sự kiện & thao tác thẻ HTML
Video
Event - Lập Trình JS
Bài tập - Ôn tập event trong javascript - Lập trình Javascript
Video
Tương tác lên tags trong HTML bằng JS
Video
Thêm tags vào tags khác bằng javascript + ví du thêm sinh viên - lập trình JS
Video
Tương tác thẻ HTML bằng Javascript qua ví dụ đặt đơn hàng (Order Entry Form)
Bài tập - quản lý form payment - Lập trình Javascript
Bài tập - Quản lý sản phẩm bằng javascript - lập trình javascript
Video
Bài tập - Quản lý sản phẩm bằng javascript - lập trình javascript
Bài tập - Form vay tiền - Lập trình Javascript
Thiết kế calculator online - html5/css & Javascript
Quản lý sinh viên - Lập trình Javascript
Video
Quản lý sinh viên - Lập trình Javascript
Lưu trữ Javascript
Video
Cookie - khoá học lập trình JavaScript
Video
Localstorage - Khoá học lập trình JavaScript
LocalStorage: Quản lý thông tin sinh viên bằng Javascript - Lập trình Javascript
Video
Lưu trữ thông tin sinh viên bằng LocalStorage - Lập trình Javascript
LocalStorage: Quản lý đăng ký đăng nhập- Lập trình Javascript
LocalStorage: Quản lý đăng ký page- đăng nhập page - Hiển thị thông tin người dung- Lập trình Javascript
Examination & Ôn Tập Tổng Quát
1000 Bài tập JavaScript - Lập Trình JavaScript
[Examination] - Ôn tập HTML/CSS/JS - 60 phút - Web quản lý tin tức
[Examination] Bài Thi Thực Hành HTML/CSS/JS
Ôn tập HTML/CSS/JS & Bootstrap/jQuery
Trắc Nghiệm
[Trắc Nghiệm] Ôn tập kiến thức javascript & luyện thi & phỏng vấn
[Trắc Nghiệm] Trắc nghiệm object, array, localStorage - Khoá học lập trình Javascript
[Trắc Nghiệm] 30 câu hỏi trắc nghiệm Javascript - Khoá học lập trình Javascript
Học JS
[Trắc Nghiệm] 30 câu hỏi trắc nghiệm Javascript - Khoá học lập trình Javascript
Previous
Next
Câu hỏi 1: Which version of ECMAScript was released in June 2023?
A: ES2022 (ES13)
B: ES2023 (ES14)
C: ES2025 (ES16)
D: ES2024 (ES15)
Đáp án: B
Câu hỏi 2: What is the primary benefit of 'Top-level await' introduced in ES2022?
A: It allows using await only inside async functions.
B: It requires a wrapper function for all fetch calls.
C: It allows the use of await outside of async functions in modules.
D: It speeds up the execution of synchronous code.
Đáp án: C
Câu hỏi 3: In ECMAScript 2022, how are private fields in a class prefixed?
A: With an underscore (_)
B: With a dollar sign ($)
C: With a percent sign (%)
D: With a hash prefix (#)
Đáp án: D
Câu hỏi 4: When is a 'static class initialization block' executed?
A: Every time an instance of the class is created.
B: When the class is first loaded by the runtime environment.
C: Only when a static method is called.
D: After the constructor finishes executing.
Đáp án: B
Câu hỏi 5: Which method is a replacement for 'Object.hasOwnProperty()' in ES2022?
A: Object.hasProperty()
B: Object.isOwn()
C: Object.hasOwn()
D: Object.contains()
Đáp án: C
Câu hỏi 6: What does 'Object.hasOwn()' return if a property is inherited rather than being the object's own?
A: true
B: undefined
C: null
D: false
Đáp án: D
Câu hỏi 7: Which keyword is used to define static initialization blocks in a class?
A: init
B: constructor
C: static
D: block
Đáp án: C
Câu hỏi 8: What is the behavior of the ES2023 method 'toSorted()'?
A: It sorts the original array in place.
B: It creates a sorted copy without modifying the original array.
C: It removes duplicate elements while sorting.
D: It only works on arrays of numbers.
Đáp án: B
Câu hỏi 9: Which method should be used to create a reversed copy of an array without changing the original?
A: reverse()
B: toReversed()
C: asReversed()
D: copyReverse()
Đáp án: B
Câu hỏi 10: The 'with(index, value)' method in ES2023 returns:
A: The original array updated at the specific index.
B: A new array with the element at the index replaced by the new value.
C: The length of the new array.
D: The value that was replaced.
Đáp án: B
Câu hỏi 11: What does the 'toSpliced()' method create?
A: A new array with elements added, removed, or replaced at a given index.
B: A shallow copy of the entire array.
C: A string representation of the spliced elements.
D: An iterator for the modified elements.
Đáp án: A
Câu hỏi 12: Which RegExp flag was introduced for match indices in ES2022?
A: /i
B: /g
C: /d
D: /m
Đáp án: C
Câu hỏi 13: What is the purpose of 'Error.cause' in ES2022?
A: To ignore errors in a try-catch block.
B: To provide a property for error chaining.
C: To automatically restart the application on error.
D: To change the error message format.
Đáp án: B
Câu hỏi 14: Which version of ECMAScript is released in June 2025 according to the slides?
A: ES2023
B: ES2024
C: ES2025
D: ES2026
Đáp án: C
Câu hỏi 15: Static initialization blocks in a class are evaluated in which order?
A: Random order
B: Reverse order of declaration
C: Alphabetical order of field names
D: Order of their declaration
Đáp án: D
Câu hỏi 16: In HTML5, which element is used to draw graphics via JavaScript?
A:
B:
C:
D:
Đáp án: C
Câu hỏi 17: The element itself has no drawing abilities; it requires which language to draw?
A: CSS
B: JavaScript
C: PHP
D: C#
Đáp án: B
Câu hỏi 18: Which method is used to specify a new drawing path in Canvas?
A: moveTo()
B: lineTo()
C: stroke()
D: beginPath()
Đáp án: D
Câu hỏi 19: What is the purpose of the 'stroke()' method in Canvas?
A: To define the thickness of the line.
B: To assign a color to the line and display it.
C: To clear the current path.
D: To move the starting point of the line.
Đáp án: B
Câu hỏi 20: Which method is used to draw a rectangle with the existing fill style?
A: drawRect()
B: fillRect()
C: strokeRect()
D: rect()
Đáp án: B
Câu hỏi 21: To draw a circle using the 'arc()' method, the end angle must be specified as:
A: PI
B: 180 degrees
C: 2 * Math.PI
D: 90 degrees
Đáp án: C
Câu hỏi 22: How many control points are used to represent Bezier curves in Canvas?
A: One
B: Two
C: Three
D: Zero
Đáp án: B
Câu hỏi 23: Which method is used to draw image objects on a canvas?
A: paintImage()
B: showImage()
C: drawImage()
D: putImage()
Đáp án: C
Câu hỏi 24: Which property is used to set the text color in a canvas?
A: color
B: fontColor
C: fillStyle
D: strokeStyle
Đáp án: C
Câu hỏi 25: The jQuery 'hover()' function accepts how many parameters?
A: One
B: Two
C: Three
D: Four
Đáp án: B
Câu hỏi 26: Which HTML5 tag is used to include external content and follows a 'push model'?
A:
B:
C:
D:
Đáp án: C
Câu hỏi 27: What is the maximum amount of information that Web Storage can store per domain?
A: 4 KB
B: 1 MB
C: 5 MB
D: 10 MB
Đáp án: C
Câu hỏi 28: Where is Web Storage data available?
A: On the server-side only
B: On both client and server sides
C: On the client-side only
D: In the cloud only
Đáp án: C
Câu hỏi 29: Which of the following is a type of HTML5 Web Storage?
A: Cookie storage
B: Session storage
C: Temp storage
D: Cache storage
Đáp án: B
Câu hỏi 30: To check for browser support of Web Storage, which global variable can be used?
A: webStorage
B: localStorage
C: dbStorage
D: clientStorage
Đáp án: B
Đã sao chép!!!
Hotline: 0967025996