JavaScript Tutorials

Latest

 thumbnail

How to use Switch Case Statements in Java

June 28, 2021

A switch-case statement in Java allows you to run different blocks of code depending on the value of a variable. sw...

 thumbnail

How to Remove All Line Breaks from a String in JavaScript

June 17, 2021

There are three types of line breaks, CRLF, LF and CR, which are represented by the following statements: \r\n – a...

 thumbnail

How to use jQuery attr() to Get & Set Data Attribute Values

June 16, 2021

To set and get data on an HTML data to attribute in jQuery, use the attr() function. Get Attribute ValueIf you need...

 thumbnail

How to Set & Get Data on an Element in jQuery

June 16, 2021

In this tutorial, we will learn how to set and get data on particular HTML elements using the jQuery .data() function.&n...

 thumbnail

Add Days to Current Date in JavaScript

June 09, 2021

To add days to a Date() object in JavaScript, use the setDate() function – inside it get the current date using the .get...

 thumbnail

parseString in JavaScript

March 16, 2021