Category Archives: Javascript

JavaScript Get Date Methods

The JavaScript Date objects support some of the get methods, that can retrieve specific data from the Date. In this JavaScript tutorial we will learn some of those get methods and how can we use them. JS Date getTime() method The getTime() method is used to return the date in milliseconds since January 1, 1970. Example <script> let… Read More »

JavaScript Strings

String data type in JavaScript is used to store a sequence of text values. We generally use the JavaScript string to represent textual data. A string value can have zero or more than zero characters, and to wrap up the string characters we can use single quotes, double quotes or backticks. Example <script> var name1 = “Rohan Singh”;… Read More »

JavaScript Objects

Objects are the most important features of JavaScript, and most of JavaScript is all about objects and their usages. In this JavaScript tutorial, we will learn the basics of JS objects and how can we use them. What are objects in JavaScript? Objects are the variables or built-in data structures in JavaScript that are used to hold multiple… Read More »

JavaScript Let Keyword

In the previous tutorial we learned about the JavaScript var keyword and how can we declare a variable using it. Before the introduction of ECMAScript 2015, JavaScript only supports var keyword for variable declaration but now it also supports two more new keywords let and const to declare a variable. In this tutorial, we will learn about the… Read More »