JavaScript
巨大ãªdiff ãã¬ãã¥ã¼ããã¨ãã«è¤æ°ã® Load Diff ãã¾ã¨ãã¦èªã¿è¾¼ã¿ãããã¨ãããã¨æãã¾ãï¼ ãã®ã¨ãã«ä½¿ãããã¯ããã¯ã§ãï¼ ããæ¹ èªã¿è¾¼ã¿ããããªã¯ã¨ã¹ãã®ãã¼ã¸ãéã Google Chrome çã®éçºè ãã¼ã«ã®Console ã®ã¨ããã§ä»¥ä¸ã®ã¹ã¯ãªããâ¦
ç¾ç¶ TypeScript ãæ¸ãã¦ããã¨ãã«ä»¥ä¸ã®ãããªã¨ã©ã¼ãçºçãã¾ããã Cannot find name 'console'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom' 解決æ¹æ³ node ã® åæ å ±ãã¡ã¤ã«ãåå¨ãã¦ãªâ¦
ã³ã¼ã const fetch = require('node-fetch') fetch("http://weather.livedoor.com/forecast/webservice/json/v1?city=130010") .then(response => { return response.json() }).then(json => { console.log(json.description.text) }) çµæ
TypeScript 㧠ã³ã¼ãã®å¤æ´ãæ¤ç¥ãã¦èªå㧠Compile -> Unit Test ã¾ã§ãå®è¡ãã
TypeScript ãæ¸ãã¦ã¦ Live Unit Testing ã¿ãããªã®ã ãã£ã¦ã¿ããã§ãããã Live Unit Testing ã¨ã¯ãã³ã¼ãã®å¤æ´ãæ¤ç¥ãã¦å³æã« Unit Test ãå®è¡ãããã®ã§ãã ãã¦ããã£ã¦ããã¾ããã ç°å¢æ§ç¯ typescript mocha (- chai) é©å½ã« TypeScript â¦