How to join or merge an Array in JavaScript?

How to join or merge an Array in JavaScript?


Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
I’m sure you must have had a scenario where you had to join or merge two different Arrays. Well, let me tell you that its an easy task. JavaScript has a native method Array.concat() which does it. Let’s take a look at the syntax....
How to set a timer in JavaScript?

How to set a timer in JavaScript?


Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Quite often you might come across scenarios wherein you would need to have a timer set in JavaScript. For instance, you might want to call a function after a delay of say 10 seconds or you may want to trigger a function every 15 seconds automatically. A very common...
How to search for a string in JavaScript?

How to search for a string in JavaScript?


Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
The String data type must be the most common data type that we use in JavaScript. One of the most common functionality around string that we would have come across is to search for a string/character/word withing another string. You can easily search for a word in...
Crossroads.js tutorial with examples

Crossroads.js tutorial with examples


Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Are you making a Single Page Application  or an SPA ? And Do you want to update the url of the page without reloading the page? Do you want your page to respond to the change in the url without reloading the page? In Short, if you are looking for a javascript routing...
How to add new value to an array in JavaScript using Array.push() ?

How to add new value to an array in JavaScript using Array.push() ?


Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/content/p3pnexwpnas02_data01/82/41786482/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Arrays have been a very useful data type in all the programming languages. They are usually used to describe a collection of elements, values or variables. A lot of us might have come across scenarios where we had to insert a new value into the javascript array. Let...