How to check if an array is empty or not using javascript


While developing any application, array is mostly used variable to store the list of values. And in most of the scenarios you might want to check if array is empty or not, Here I’ll show you how can we check if array is empty or contains a value

JavaScript Assignment Operators

Javascript Assignment Operators

In this article we will learn about JavaScript assignment operators. JavaScript Assignment Operator The followings are the assignment operator in javascript: Simple Assignment Additional Assignment Subtraction Assignment Multiplication Assignment Division Assignment Reminder Assignment   Simple Assignment (=) This operator assigns the right operand value to the left operand. var a='apple', b='banana',c='cat'; Additional Assignment (+=) This … Read more