ãã§ãã API ã¯ããªã¯ã¨ã¹ããã¬ã¹ãã³ã¹ã¨ãã£ããããã³ã«ãæä½ããè¦ç´ ã«ã¢ã¯ã»ã¹ããããã® JavaScript ã¤ã³ã¿ã¼ãã§ã¤ã¹ã§ããã°ãã¼ãã«ã® fetch() ã¡ã½ãããæä¾ãã¦ãããç°¡åã§è«ççãªæ¹æ³ã§ãéåæã«ãããã¯ã¼ã¯è¶ãã§ãªã½ã¼ã¹ãåå¾ãããã¨ãã§ãã¾ãã ã³ã¼ã«ããã¯ãã¼ã¹ã® API ã§ãã XMLHttpRequest ã¨ã¯ç°ãªããFetch 㯠Promise ãã¼ã¹ã§ããããµã¼ãã¹ã¯ã¼ã«ã¼ ã§ç°¡åã«ä½¿ç¨ã§ããåªãã代æ¿æ段ãæä¾ãã¾ããFetch ã¯ãCORS ããã®ä»ã® HTTP æ¡å¼µæ©è½ãªã©ã®é«åº¦ãª HTTP æ¦å¿µãçµ±åãã¾ãã åºæ¬çãªãã§ãããªã¯ã¨ã¹ãã¯ã以ä¸ã®ã³ã¼ããè¦ã¦ãã ããã async function logMovies() { const response = await fetch("http://example.com/movies.
{{#tags}}- {{label}}
{{/tags}}