What are callback functions and provide a simple example ?

Callback is just a function that is passed as an argument to another function. Also as known higher-order function. The callback should be invoked whenever the asynchronous task is finished. Callback functions are not asynchronous. …


The basic idea of Object Oriented Programming is that we use objects to model real world things that we want to represent inside our programs and/or provide a simple way to access functionality that would otherwise be hard or impossible to make us of. Generally to make this easier, we…


JavaScript is an object-based language based on prototypes, rather than being class-based. Objects are not inherently class-based but it is often convenient to define class-like abstractions based upon a common pattern of constructor functions, prototype objects and methods. Built-in objects themselves follow such a class-like pattern by making use of…


In order to understand “this” keyword clearly, we need to go through of how the execution context works at first. Every time you run some Javascript code, the engine creates a Global Execution Context. Every time a function is invoked, a brand new Local Execution Context is created for that…

Yasemin çidem

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