Samual Sam has Published 2492 Articles

JSON.parse() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:03:33

128 Views

The JSON.parse() function accepts a JSON string, and constructs an object based on the given text and, returns it.SyntaxIts Syntax is as followsJson.parse();Example Live Demo    JavaScript Example           var jsonSample = '{"Tutorial": "Java", "Version":8 }';       jsonObj = JSON.parse(jsonSample);     ... Read More

Map.set() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:02:43

42 Views

The set() function of Map object adds or updates elements (key-value pairs) to a Map object.SyntaxIts Syntax is as followsmapVar.set()Example Live Demo    JavaScript Example           var mapVar = new Map();       mapVar.set('1', 'Java');       mapVar.set('2', 'JavaFX');       ... Read More

Perform Animation on CSS border-top-right-radius property

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:52:02

124 Views

To implement animation on the border-top-right-radius property with CSS, you can try to run the following codeExampleLive Demo                    table, th, td {             border: 2px solid black;          }     ... Read More

Date. toJSON() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:51:17

181 Views

The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, ... Read More

Java Program to Match Zip Codes

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:50:54

177 Views

Let’s say we have the following zip code.String zipStr = "12345";Now, set the following regular expression to match zip codes in America.String reg = "^[0-9]{5}(?:-[0-9]{4})?$";Example Live Demopublic class Demo {    public static void main(String[] args) {       String zipStr = "12345";       // regular expression   ... Read More

Animate CSS border-spacing property

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:48:08

109 Views

To implement animation on the border-spacing property with CSS, you can try to run the following codeExampleLive Demo                    table, th, td {             border: 1px solid green;          }     ... Read More

Align the flex items in the top of the container in CSS

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:44:22

1K+ Views

Use the align-items property with value flex-start to align flex items on the top.You can try to run the following code to implement the flex-start valueExampleLive Demo                    .mycontainer {             display: flex;     ... Read More

Indicate what character set the style sheet written in with CSS

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:39:13

95 Views

To indicate what character set the style sheet written with CSS, use the @character rule. The @charset rule must be written right at the beginning of the style sheet without even a space before it. The value is held in quotes and should be one of the standard character-sets.ExampleLet us ... Read More

Perform Animation on CSS border-right property

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:39:09

124 Views

To implement animation on the border-right property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 500px;             height: 300px;       ... Read More

Date.getUTCDay() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 11:38:48

23 Views

The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, ... Read More

Advertisements