[英]Please help me to edit some javascript problems using javascript koans?
大家好,我正在通過Javascript koans學習javascript,並且嘗試在以下糾正錯誤(感謝任何指導):
module("About Asserts (topics/about_asserts.js)");
test("ok", function() {
ok(_ ===true, 'what will satisfy the ok assertion?');
});
test("not", function() {
not(__, 'what is a false value?');
} );
test("equals", function() {
equals( __,1+1 'what will satisfy the equals assertion?');
});
這是我嘗試過的,但代碼仍未運行
module("About Asserts (topics/about_asserts.js)");
test("ok", function() {
ok(true, 'what will satisfy the ok assertion?');
});
test("not", function() {
not(false, 'what is a false value?');
});
test("equals", function() {
equals( 2==,1+ 1 'what will satisfy the equals assertion?');
});
我認為您的答案格式有誤。 只能更換帶下划線的部分,其余部分完全保留。 剛開始時有點令人困惑,但是您很快就會掌握它。
該程序可能會尋找以下內容:
test("ok", function() {
ok(true===true, 'what will satisfy the ok assertion?');
});
test("not", function() {
not(false, 'what is a false value?');
} );
test("equals", function() {
equals(2,1+1 'what will satisfy the equals assertion?');
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.