What are the falsy values in JavaScript?
const falsyValues = ['', 0, null, undefined, NaN, false];
Falsy values are values that when converted to boolean becomes false
.
How to check if a value is falsy?
Use the Boolean function or the Double NOT operator !!
October 21, 2022
952
Read more
What is the JavaScript += Operator and How Do You Use It?
December 04, 2022
JavaScriptUsing the startsWith() Method in JavaScript
December 04, 2022
JavaScriptReverse a String in JavaScript: 2 Easy Methods
December 02, 2022
JavaScript