we can use async/await to make JavaScript promises easier to work with before we have two functions here the first function make request returns a
Category: Java Script
Java Script
Forum 1
Express is a node module. Used in web applications Express is one of a web framework for web applications. Nodemon : npm package for run
Var, let and const- what’s the difference?
Scope of var var declarations are globally scoped or function/locally scoped. It is globally scoped when a var variable is declared outside a function. This
Javascript -1
Object The Object constructor creates an object wrapper. // Called as a constructor new Object([value]) The Object constructor creates an object wrapper for the given
Javascript 2
For of, For in – Loop var array = [70,50,40]; for(var i of array){ console.log(‘Values : ‘,i); } for(let i in array){ console.log(“Key / Index
Proxy Design Pattern
Proxy – “in place of” or “representing” or “on behalf of” Placeholder for another object to control the access. Proxy is the object that is
Web APIs
When writing code for the Web, there are a great many Web APIs available. Below is a list of all the APIs and interfaces (object
Javascript : Callback
What is a Callback? Simply put: A callback is a function that is to be executed after another function has finished executing – hence the
Javascript : Closure
Closure The most important thing closures do is allow functions to keep on working even if their environment drastically changes or disappears. Any variables that
Javascript : Async/Await
Async/Await Inside a function marked as async, you are allowed to place the await keyword in front of an expression that returns a Promise. When