Skip to content Skip to sidebar Skip to footer
Showing posts with the label Function

Difference Between Named And Anonymous Callback Function In Js

I wrote the following practice code to compare the differences between named and anonymous callback… Read more Difference Between Named And Anonymous Callback Function In Js

Apply/call Method In Javascript: What Is The First Arguments "this"?

I am confused about using apply or call method correctly. I know that apply is passing an array to … Read more Apply/call Method In Javascript: What Is The First Arguments "this"?

Get A Color Name From Any Rgb Combination (script Included)

i am returning a hex and an RGB color in my app (from camara) and i want to use a script to identif… Read more Get A Color Name From Any Rgb Combination (script Included)

A Shorthand For Function.prototype.call.call?

Ways to call a function Consider this simple function: function my(p) { console.log(p) } I can cal… Read more A Shorthand For Function.prototype.call.call?

How To Dynamically Attach A Function To An Object

I know there are a few similar questions already on SO (1, 2, 3) but unfortunately my limited knowl… Read more How To Dynamically Attach A Function To An Object

Function Declaration And Function Expression Performance Difference

I have used JSperf to test a small sample of code. According to a few articles I came across, both… Read more Function Declaration And Function Expression Performance Difference