You may encounter situations, when a block of code needs to be executed several number of times. In general, statements are executed sequentially i.e. The first statement in a function is executed first, followed by the second, and so on. But in our programs, there may be a need of doing repetitive work which can be easily done with the help of loops.
Blog
Python and its features
Functions in JavaScript
Functions are groups of codes which can be written separately from main program and can be called anywhere in the program. When someone is called by his senior in any office to perform some work, in the same way a function is also called in the main program to perform a particular task.
The break and continue control statements in JavaScript
Loops in JavaScript
Sorting data of array list in JavaScript
By sorting, we simply mean to arrange items in a particular order. The items may be placed alphabetically, increasingly or decreasingly. The words can be arranged alphabetically whereas numbers can be arranged in increasing or decreasing order.
How to search an array in JavaScript?
As you know an array is a list of elements which can be numbers, text etc. You may have the situations when you need to search an element in your array list. To do that, JavaScript provides different methods to search elements in an array list.
Arrays in JavaScript
The array object allows you to store multiple values in one variable. It stores data in sequence form having same type. JavaScript arrays can store any valid value, including strings, numbers, objects, functions, and even other arrays, thus making it possible to create more complex data structures such as an array of objects or an array of arrays.
Switch case in JavaScript
The switch case is an alternative of if…else statement which does almost the same thing. The switch case statement tests a variable against a series of values until it finds its match.
If-else or conditional statements in JavaScript
When you write a code for developing your web page, you may have the situations where you want to handle some statements of your code with some conditions.
JavaScript Operators
Operators are the basic building blocks of any programming language. Like other programming languages, JavaScript also has built in operators which are used to make number calculations, assign values etc. These are the symbols which tell the JavaScript engine to perform calculations like addition, subtraction, division, multiplication, assigning vales to the variables.