
java vs javascript
Following is the comparison table between Java vs JavaScript: Basis of Comparison Java JavaScript OOPS Java is an object-oriented programming language which uses objects to perform any actions based on …
Read MoreFollowing is the comparison table between Java vs JavaScript: Basis of Comparison Java JavaScript OOPS Java is an object-oriented programming language which uses objects to perform any actions based on …
Read MoreThe JavaScript forEach method is one of the several ways to loop through arrays. Each method has different features, and it is up to you, depending on what you’re doing, …
Read MoreArrays Objects allow you to store keyed collections of values. That’s fine. But quite often we find that we need an ordered collection, where we have a 1st, a 2nd, a …
Read MoreThe JavaScript loops are used to iterate the piece of code using for, while, do while or for-in loops. It makes the code compact. It is mostly used in array. There are four types …
Read MoreThe JavaScript switch statement is used to execute one code from multiple expressions. It is just like else if statement that we have learned in previous page. But it is convenient than if..else..if because it …
Read MoreThe JavaScript if-else statement is used to execute the code whether condition is true or false. There are three forms of if statement in JavaScript. If Statement If else statement if else if …
Read MoreJavaScript operators are symbols that are used to perform operations on operands. For example: var sum=10+20; Here, + is the arithmetic operator and = is the assignment operator. There are following …
Read MoreJavaScript provides different data types to hold different types of values. There are two types of data types in JavaScript. Primitive data type Non-primitive (reference) data type JavaScript is a dynamic type language, …
Read MoreA JavaScript global variable is declared outside the function or declared with window object. It can be accessed from any function. Let’s see the simple example of global variable in JavaScript. <script> …
Read MoreA JavaScript variable is simply a name of storage location. There are two types of variables in JavaScript : local variable and global variable. There are some rules while declaring a JavaScript …
Read More