JavaScript hiện đại: từ cơ bản đến nâng cao (ES2026)›7. Prototype và ClassQuiz: Prototype và ClassChọn đáp án đúng.Question 1.Trên từng instanceTrên `User.prototype`Trên `Object.prototype`Question 2.Chạy bình thườngNém `ReferenceError``this` là `undefined`Question 3.Select all correct answers.Không xuất hiện trong `Object.keys`Truy cập `obj.#x` từ ngoài class là `SyntaxError`Có thể đọc bằng `obj["#x"]`Có thể kiểm tra bằng `#x in obj` bên trong classQuestion 4.`Object.prototype``Array.prototype``null`Question 5.Mỗi lần tạo instanceMột lần, khi class được định nghĩaKhi gọi method static đầu tiênCheck Mark as completed← PreviousNext →Comments
Comments