Author: ShairyPortfolio

Array in JavaScript

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   >>

String Methods in Java

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   >>

String in Java

A string is a collection of characters that enclosed either within single quotes (') or double quotes ("). Example var name = ‘Shairy'; // Single quoted string var name = "Shairy!"; // Double quoted string Different properties and...
READ MORE   >>

Get and Set Date Function in JS

new Date (year, month, date, hours, minutes, seconds, ms) Getting date components getFullYear () =>Get the year (4 digits) getMonth () =>Get the month, from 0 to 11. getDate()=>Get the day of month, from 1 to 31 getHours() ...
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved