fetch(%27https://api.github.com/repos/javascript-tutorial/en.javascript.info/commits%27) .then(response => response.json()) .then(commits => alert(commits[0].author.login));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter