javascript

Functional Programming

One key feature in a functional language is the concept of first-class functions. The idea is that you can pass functions as parameters to other functions and return them as values. Functional programming involves writing code that does not change state. The primary reason for doing so is so that successive calls to a function… Continue reading Functional Programming

Advertisements
javascript

ES6 – Promises

Callback what's Callback function? callback function is a function which is passed to another function as an argument. and the callback function is called (or executed) inside the other function. Basic Example var getUser = (id, callback) => { var user = { id: id, name: 'Ahmed' }; callback(user); }; getUser(31, (userObject) => { console.log(userObject); });… Continue reading ES6 – Promises

javascript

JavaScript – V8 Engine

V8 is Google’s open source high-performance JavaScript engine, written in C++. It is used in Google Chrome, the open source browser from Google, and in Node.js, among others. Computers don't understand JavaScript. JS engine takes JavaScript and converts it into something it does understand - machine code. so what's Machine code (language): it's a programming… Continue reading JavaScript – V8 Engine

javascript

How JavaScript works – Engine, the run-time, and the Call stack

JavaScript is getting more and more popular, many frameworks have been created for JS, we can now used Js in front-end development and also for back-end before digger deeper in Angular or ReactJs or Nodejs we need to digger deeper into JavaScript and know how it actually works. there are a lot of developers that… Continue reading How JavaScript works – Engine, the run-time, and the Call stack

javascript

JS – Types & Grammar

Most developers would say that a dynamic language (like JS) does not have types. An ECMAScript language type corresponds to values that are directly manipulated by an ECMAScript programmer using the ECMAScript language. The ECMAScript language types are Undefined, Null, Boolean, String, Number, and Object. JavaScript defines seven built-in types: null undefined  boolean number string… Continue reading JS – Types & Grammar