AmitDiwan has Published 10744 Articles

JavaScript array.values()

AmitDiwan

AmitDiwan

Updated on 06-May-2020 12:24:26

166 Views

The JavaScript array.values() return an iterator object that contains all the values of a given array.Following is the code for array.values() function −Example Live Demo Document body {    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .sample {    font-size: 20px;    font-weight: 500; } ... Read More

JavaScript array.toLocaleString() function

AmitDiwan

AmitDiwan

Updated on 06-May-2020 12:22:06

139 Views

The JavaScript array.toLocaleString() function returns the elements of an array as a string and are separated by a locale specific string such as comma. It can take locale as parameter which specifies the language tag in which the string is to be converted.Following is the code for the array.toLocaleString() functionExample Live ... Read More

JavaScript arrayBuffer.slice() method

AmitDiwan

AmitDiwan

Updated on 06-May-2020 12:01:36

205 Views

The JavaScript arrayBuffer.slice() method returns a new arrayBuffer whose contents are copy of the another arrayBuffer from begin, inclusive till end, exclusive.Following is the code for the arrayBuffer.slice() method −Example Live Demo Document body {    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .sample, .result ... Read More

JavaScript date.@@toPrimitive() function

AmitDiwan

AmitDiwan

Updated on 06-May-2020 11:59:40

84 Views

The JavaScript date.@@toPrimitive() function converts the date object into a primitive value.Following is the code for date formats in JavaScript −Example Live Demo Document body {    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .sample {    font-size: 18px;    font-weight: 500; } ... Read More

JavaScript WebAPI File File.type Property

AmitDiwan

AmitDiwan

Updated on 06-May-2020 11:58:12

111 Views

The JavaScript File WebAPI file.type property indicated the media type of the file.Following is the code for the File WebApi File.type property −Example Live Demo Document body {    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .result {    font-size: 18px;    font-weight: 500;   ... Read More

JavaScript WebAPI File File.size Property

AmitDiwan

AmitDiwan

Updated on 06-May-2020 11:55:32

102 Views

The JavaScript File WebAPI file.size property returns the size of file in bytes.Following is the code for the File WebApi File.size property −Example Live Demo Document body {    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .result {    font-size: 18px;    font-weight: 500;   ... Read More

JavaScript - Detecting the pressed arrow key

AmitDiwan

AmitDiwan

Updated on 06-May-2020 11:48:42

256 Views

To detect the pressed arrow key in JavaScript, the code is as follows;Example Live Demo Document body {    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .sample {    font-size: 18px;    font-weight: 500; } Detecting the pressed arrow key ... Read More

JavaScript Detecting a mobile browser

AmitDiwan

AmitDiwan

Updated on 06-May-2020 11:46:18

203 Views

Following is the code for detecting a mobile browser in JavaScript −Example Live Demo Document body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .sample {    font-size: 18px;    font-weight: 500; } Detecting a mobile browser CLICK HERE Click on ... Read More

Get an enumerator that iterates through Collection in C#

AmitDiwan

AmitDiwan

Updated on 06-May-2020 08:47:25

107 Views

To get an enumerator that iterates through Collection, the code is as follows −Example Live Demousing System; using System.Collections.ObjectModel; public class Demo {    public static void Main(){       Collection col = new Collection();       col.Add("Andy");       col.Add("Kevin");       col.Add("John");       ... Read More

Removing the node at the start of the LinkedList in C#

AmitDiwan

AmitDiwan

Updated on 02-May-2020 08:18:24

97 Views

To remove the node at the start of the LinkedList, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main(){       LinkedList list = new LinkedList();       list.AddLast("One");       list.AddLast("Two");       list.AddLast("Three");   ... Read More

Advertisements