JavaScript Assignments

Assignment 1: Create a Sign-up form, with following validation: All fields are mandatory The Email Id must be valid The Phone number must be valid The Date of Birth must be in such a way that it is greater than 18 The two passwords must match (password and confirm...

JavaScript Events

JavaScript Events In our browser, anything we do is with the HTML. This HTML part has some predefined events to handle user interactions. Following are some of the HTML events: Event Description onchange This event is triggered when an HTML element has been changed...

JavaScript Objects

JavaScript Objects A JavaScript object is a variable which stores multiple data in the form of key and value pairs separated by a colon. This key (or name) value pair together is called property of an object. Example: An object with Employee Data var person =...

JavaScript Functions

JavaScript Functions In JavaScript, you write all your logic within a function. A function is a block of code designed to perform a specific task. After performing its task, the function returns a result. To execute a function, we need to trigger it. In this section,...

JavaScript Operation on Date

JavaScript Operation on Date In JavaScript we can fetch current date and time based on the browser’s time zone. This date is displayed as a full text string. Example: Fri May 03 2019 22:22:06 GMT+0530 (India Standard Time) We can create a new Date object in...