JAVASCRIPT

Learn JavaScript Basics in 5 Minutes

As of 2021, there is no better time to learn JavaScript.

Image for post
Image for post
Photo by JESHOOTS.COM on Unsplash

Introduction

Image for post
Image for post

How does JavaScript work?

Syntax of JavaScript

const myList = ['John', 33, true];
console.log(myList[0]); // 'John'
const myDict = {name: 'John', age: 33, active: true};
console.log(myDict.name); // 'John'
function add(first, second) {
return first + second;
}
console.log(add(1, 2)); // prints 3
'John'.toUpperCase();
(300).toFixed(2);
['ant', 'bison', 'camel'].indexOf('bison');
(a, b) => a + b
await function fetchData(url) {
const response = await fetch(url);
}

Written by

Co-founder and CTO at Datamart, Ex-Googler, specializes in Analytics, Software Development and Architecture Design. vpodk.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store