Blog

Recent Posts

Which one to choose Mocha or Jest

less than 1 minute read

If you have a large project with the need for flexibility and customization then Mocha is probably the choice for you. If you have a smaller project and don’...

What is the difference between Mocha and Chai JS

less than 1 minute read

Mocha provides developers with a base test framework, allowing you to have options as to which assertion, moking and spy libraries you want to use. Chai is o...

What is a HttpOnly cookie?

less than 1 minute read

HttpOnly is an additional flag included in Set-Cookie HTTP response header. Using the HttpOnly flag when generating a cookie helps mitigate the risk of clie...

What are first-class functions?

less than 1 minute read

A programming language is said to have first-class functions if it supports passing functions as arguments to other functions, returning them as the values f...

What is a Debounce function?

less than 1 minute read

Debounce function returns a function that as long as it continues to be invoked, will not be triggered. The function will be called after it stops being cal...

.bash_profile vs .bashrc

less than 1 minute read

.bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells.

How to do undo in Git?

less than 1 minute read

References https://github.com/blog/2019-how-to-undo-almost-anything-with-git