私はjsに不慣れで、この問題を解決できません。
test("splice", function() {
var daysOfWeek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
var workingWeek = daysOfWeek.splice(__);
ok(workingWeek.equalTo([__]), 'what is the value of workingWeek?');
ok(daysOfWeek.equalTo([__]), 'what is the value of daysOfWeek?');
});
私の試みは以下でしたが、うまくいきません。
test("splice", function() {
var daysOfWeek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
var workingWeek = daysOfWeek.splice(5,6);
ok(workingWeek.equalTo([5]), 'what is the value of workingWeek?');
ok(daysOfWeek.equalTo([2]), 'what is the value of daysOfWeek?');
});
誰かが私にこれの手がかりを提供できますか?