告诉我们发生了什么:
let cities = [“London”,“New York”,“Mumbai”];
console.log(cities);
cities [cities.length - 1] = “Mexico city”;
console.log(cities);
what’s wrong with these codes , i write they in chorme ask AI ,and it says that’s correct , but i can’t pass the step.
到目前为止你的代码
let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
// User Editable Region
let cities = ["London","New York","Mumbai"];
console.log(cities);
cities [cities.length - 1] = "Mexico city";
console.log(cities);
// User Editable Region
console.log(rows);
你的浏览器信息:
用户代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
挑战信息:
通过创建金字塔生成器学习 JavaScript 基础知识 - 步骤 24