AmitDiwan has Published 10740 Articles

JavaScript array.toLocaleString() function

AmitDiwan

AmitDiwan

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

167 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

234 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

103 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

132 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

117 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

289 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

231 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

135 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

117 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

Boolean.Parse() Method in C#

AmitDiwan

AmitDiwan

Updated on 24-Apr-2020 11:11:22

2K+ Views

The Boolean.Parse() method in C# is used to convert the specified string representation of a logical value to its Boolean equivalent.SyntaxFollowing is the syntax −public static bool Parse (string val);Above, the parameter value is a string containing the value to convert.ExampleLet us now see an example to implement the Boolean.Parse() ... Read More

Advertisements