Latest

 thumbnail

How to get Random Elements from an Array in JavaScript

September 13, 2020

Sometimes we need to get a random element from an array in JavaScript. An array is a list of indexed elements so in orde...

 thumbnail

How to use enums in JavaScript

September 12, 2020
 thumbnail

How to Get Elements by Class Name in JavaScript

September 11, 2020

Getting an element by its ID is easy with JavaScript, but what about getting elements by class name? In this tutorial, w...

 thumbnail

How to Create Custom Artisan Commands in Laravel

September 10, 2020

The artisan command interface is a really neat tool for working with the Laravel framework from the command-line. It can...

 thumbnail

How to Merge Strings or Arrays in JavaScript Using the concat() Method

September 09, 2020

JavaScript has a built-in method for merging strings or arrays together called concat(). It allows you to take an array,...

 thumbnail

How to Use Ternary Operators in JavaScript

September 09, 2020

Ternary operators in JavaScript are used to make conditional statements and work like regular if else statements. The ma...