<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ... READ MORE >>
Pop- This method is used to remove the last element of the array. Syntax Array.pop() let Courses = ["Php", "java", "c"]; alert( Courses.pop() ); alert( Courses); Push- This method is used to insert an element to the end of... READ MORE >>
An array is a collection of elements that use the common name to store all the elements. Array always start from Memory Location Zero. It is lengthy process to store huge elements in a separate variable; Arrays solve this problem by storing all the... READ MORE >>
Extracting a Substring from a String slice() method is used to extract a part or substring from a string. This method takes 2 parameters: like str.slice(startIndex, endIndex). Example var str = "The Best IT Company in Ludhiana is... READ MORE >>
Recent Comments