Total 9 articles
- 1
Truthy and falsy values in JavaScript
Read moreTruthy values are considered as
true
and falsy values are considered asfalse
in Boolean contexts for example in conditionals and logical operators. - 2
A deep and pragmatic guide to the
<
,>
,<=
and>=
comparison operators of JavaScriptRead moreThese four operators as you might have guessed are used for comparing values in JavaScript. The names of these operators are:
Operator Name >
Less than >
Greater than <=
Less than or equal >=
Greater than or equal - 3
Don't use
window.event
Read moreSuppose you have the following HTML and JavaScript:
<button id="btn">Click me</button>
let myBtn = document.querySelector("#btn"); myBtn.addEventListener("click", () => { console.log(event); });
What do you think clicking on the button will happen?
- 4
Rest parameters of JavaScript
Read moreHave you ever dreamed of creating your own JavaScript function that can accept any number arguments? Today we will learn how to do that with modern JavaScript syntax. And as you might already have guessed: the name of that syntax is rest parameter.
- 5
Linux command:
gzip
Read moregzip
command is used to reduce the size of given files. This command is so common that you will most likely find it already installed on your Linux distro. - 6
Linux command:
locate
Read moreIf you are feeling lazy and need to search for some file or directory in your whole system, then
locate
might be your best friend. It can find things super fast from thousands of items with the help of a database created earlier and usually updated automatically once a day. - 7
What are wildcards and globbing?
Read moreThe two features of Linux shells — wildcards and globbing — can sometimes save us a lot of time by letting us communicate to the computer to match filenames in an efficient way to do something with them like displaying, copying, moving, removing etc.
- 8
Template literals and tagged template literals
Read moreTemplate literals are a handy way to include any values inside of a string. With template literal you always get a string value. Tagged template literals give you complete freedom over the return value of a template literal and gives you access to the parts of it through a function called the tag function.
- 9
Find out Fibonacci sequence in JavaScript with one line of code
Read moreFibonacci sequence is very easy to think of. The first two terms are $0$ and $1$ respectively. And any later term is the sum of previous two terms. So it grows like below:
📨 Join My Newsletter
Subscribe to get notfied of my new articles and news.
No spam, unsubscribe at any time.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.