请帮我用javascript koans编辑一些javascript问题?

时间:2014-03-13 05:38:08

标签: javascript

嘿伙计我正在通过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?');
});

1 个答案:

答案 0 :(得分:0)

我认为你的答案格式出错了。只更换带下划线的部件,并将其余部分完全单独留下。起初它有点令人困惑,但你会很快掌握它。

该计划可能会寻找以下内容:

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?');
});