Writer, Learner, JavaScript Developer, working on https://finalspaceapi.com
Image for post
Image for post
Photo by Christopher Gower on Unsplash

Callbacks


Image for post
Image for post
Photo by MORAN on Unsplash

Introduction

Example

  • Get Video Games from adjacent towns (somewhere far).
  • Get Chocolate from a nearby store.


And is it really so dangerous?

Image for post
Image for post
Photo by WOCinTech Chat on Flickr

What?

How?


Image for post
Image for post
Photo by Fernando Hernandez on Unsplash


Object literals are only the beginning

Image for post
Image for post
Photo by Markus Spiske on Unsplash
  1. Object Literals
  2. New Keyword
  3. Class

Object Literals

Shorthand property names


Image for post
Image for post
Photo by Alejandro Barba on Unsplash

Hoisting


Using sets to deal with unique elements in a dataset

Image for post
Image for post
Photo by JOSHUA COLEMAN on Unsplash
new…


“Writing in ECMAScript language without understanding closure is like writing Java without understanding classes” — Douglas Crockford, father of JSON

Image for post
Image for post
Photo by Caspar Camille Rubin on Unsplash


Defining one of the key components in programming

Image for post
Image for post
Photo by Luca Bravo on Unsplash
  1. Function Declaration
  2. Function Expression
  3. Generator Function

1. Function Declaration

Syntax for Function Declarations


Image for post
Image for post

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