JavaScript ã®ãã¹ã æ¸ããªãã¨æãããããæ¸ãããã¨ã¯æã£ã¦ããããæ¸ãã¾ã§ã®æ·å± ããããã¨é«ããªã£ã¦ãã¾ã£ãæ°ããã¦ãã人ã¸ã æå°ã®ãã¹ã æ¬è³ªçã«ãã¹ããæ¸ãã®ã«ãã¬ã¼ã ã¯ã¼ã¯ã¯ãããªãã assertion ã ãããã°ããã isomorphic ã«ããããªãã node ã® assert ã¢ã¸ã¥ã¼ã«ãã使ãã console.assert ã ãã§æ¸ããã // assert function assert(actual, expected) { console.log('.'); console.assert(actual === expected, '\nact: ' + actual + '\nexp: ' + expected); } function TestSum() { assert(1+2, 3); } // exec TestSum(); ãã¨ã¯æ®éã«
{{#tags}}- {{label}}
{{/tags}}