All Tracks/learn basic debugging by building a random background color changer/
Đang tải...
Hướng dẫn thử thách
1 / 8

Step 2

Now, CamperBot is trying to create a function that will return a random index from the `darkColorsArr`. But they have run into the following error message: ```js Uncaught ReferenceError: math is not defined ``` A `ReferenceError` is thrown when a non-existent variable is referenced. In this case, it looks like CamperBot is trying to use `math` but JavaScript doesn't have a `math` object. Fix CamperBot's error in the `math.random()` line and open up the console again.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.html
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.