Ad
  • Custom User Avatar

    In the Javascript version, the test case descriptions do not match up to their assertions, e.g.

    Test.assertEquals(buildOneTwoThree().data, 1, "First node should should have 1 as data."); // correct
    Test.assertEquals(buildOneTwoThree().next.data, 2, "First node should should have 1 as data."); // "should have 2 as data"
    Test.assertEquals(buildOneTwoThree().next.next.data, 3, "Second node should should have 2 as data."); // "should have 3 as data"
    

    I believe the line "First node should should have 1 as data." is duplicated and so the others below are also incorrect

  • Custom User Avatar

    In Javascript, a function name should only be capitalized if it is a constructor.

    function Past(h, m, s) should be renamed as function past(h, m, s)