Frontend & Backend - 2

909 ワード

ひどうきよびだし



ソース:https://learnjs.vlpt.us/async/

Promise, async/await

async function xxx (){
	return await fetch(xx)
    	...
}

タイマAPI

setTimeout(callback, millisecond)
ex)
setTimeout(function () {
  console.log('1초 후 실행');
}, 1000);
// 123

node.jsモジュールの使い方

const fs = require('fs');

fetch APIの使い方

let url =
  "https://v1.nocodeapi.com/codestates/google_sheets/YbFMAAgOPgIwEXUU?tabId=최신뉴스";
fetch(url)
  .then((response) => response.json())
  .then((json) => console.log(json))
  .catch((error) => console.log(error));