All posts in JavaScript

Debugging With Black Box – Javascript

By the end of 2013 Firefox launched a tool called Black Box to their browser inspector. About a year later, Chrome did the same. If you need to carry out debugging in your code but don’t know about black boxing scripts then you should definitely give this post a read.

Read more

CORS Anywhere

After a recent domain change at my workplace one of the API endpoints became inaccessible due to some configuration problems resulting in incorrect behavior in regards to cross-origin resource sharing policy. It interfered with one non-critical function of the website and was a bit of a nuisances but not big enough for back-end team to prioritize fixing it.

Read more

Event Delegation in JavaScript

Event delegation is a pattern of adding an event listener to a parent node instead, of adding an event listener to the individual node. The added event listener will check for the bubbled event to find matching child element. In this article we will talk about how to implement an event listener using very trending method in JavaScript i.e., event delegation pattern.

Read more

Spread syntax (three dots) in JavaScript

Spread syntax which is used by typing three dots (…) in JavaScript. It allows an array expression or string or anything which can be iterating to be expanded in places where zero or more arguments for function calls or elements for array are expected. It can also be used for an object expression to be expanded in places where zero or more key-value pairs for object are expected.

Read more

arguments object in JavaScript function

The arguments object is an Array-like object matching to the arguments passed to a function. The arguments object is a local variable available within all (non-arrow) functions. You can refer to a function’s arguments within the function by using the arguments object.

Read more

Default Parameter in JavaScript function

In any programming language we often require having default parameter or default value for the parameter in a function. JavaScript allow us to initialize parameter a default value. If you are not passing any value to the parameter, then the default value of the parameter will be undefined.

Read more

JavaScript Running On A Wearable? Yes, And Its Native and Angular.

A while ago i was Searching, if it’s possible to use NativeScript and Angular with Android Wear. It’s possible, easy to setup in 5 steps and with FlexBox in NativeScript you can even handle small screens.

Read more

What’s new in ECMAScript 2018

Four new feature proposals for the specification underlying JavaScript are finalized and four others are under consideration

Read more

Superstruct

I stumbled upon this GitHub project a few days ago. It’s called Superstruct, and it looks like an awesome way to validate data in JavaScript.

Read more

For-of Loop

For of loop is one of a few recent additions to the for loop in JavaScript. It makes it possible to do what is basically a foreach in most other programming languages, like for example C#.

Read more