Introduction to JavaScript

In the JavaScript tutorial, we will learn about JavaScript basics, which is scripting and lightweight interpreted programming language it helps to create dynamic web pages. Basically, It facilitates the development of excellent front-end and back-end applications using JavaScript-based frameworks such as jQuery, Node.JS, and others. Note: HTML and CSS give your page structure and style, while JavaScript … Read more

JavaScript Syntax

JavaScript syntax is the set of rules that define a correctly structured JavaScript program. JavaScript consists of JavaScript statements that are placed within the <script> </script> HTML tags in a web page, or within the external JavaScript file having .js extension. JavaScript Syntax- Attributes JavaScript has two following attributes: JavaScript Syntax – Values JavaScript syntax can be defined by … Read more

jQuery Ajax Form Submit with FormData Example

jQuery Ajax submit multipart form or FormData; In this tutorila, you will learn how to submit the form using the jquery ajax with multi-part data or FromData. In this tutorial, learn jquery ajax form submits with the form data step by step. A simple jQuery Ajax example to show you how to submit a multipart … Read more

JavaScript String indexOf(): Find Occurrence Position in String

In this tutorial, you will learn how to find the first occurrence of a character’s position in a string using the JavaScript string indexOf() method. The indexOf() method in JavaScript is used to find the first occurrence of a character in a given string. It returns the position of the first occurrence of the character … Read more

Get Current Page URL, Path, Host and hash using jQuery

Get current Page URL, Path, and hash using jQuery; In this tutorial, you will learn how to get the current page URL, pathname, hostname, origin using the jQuery. Let’s start the tutorial to find the current page URL and find the pathname, hostname, origin from the current page URL using jQuery with example. How to … Read more

JavaScript Date Formats

Date objects represent a single moment in time in a platform-independent format. There are commonly 3 types of input JavaScript date formats: JavaScript Date Formats – Time Zones JavaScript will use the browser’s time zone when we set a date, without specifying the time zone. Short Dates The “MM/DD/YYYY” syntax is used for short dates: … Read more

JavaScript String Methods

The JavaScript string methods help to work on strings. JavaScript methods and properties help to work with primitive values. Following are some methods that are used to work with strings in JavaScript. String Length To check the length of a string in JavaScript the length property is used: Output: Converting to Upper and Lower Case A … Read more

JavaScript Arithmetic

JavaScript arithmetic operators are used to perform arithmetic operations on numbers (like variables or literals). An arithmetic operation is performed on 2 numbers typically. These numbers are known as an operand and the operation is done by an operator. Following are some basic JavaScript arithmetic operators: Operator Description + Addition – Subtraction * Multiplication ** … Read more

JavaScript Array Methods

The JavaScript array methods help to work on arrays. Following are some JavaScript array methods that are used to work with arrays in JavaScript. Arrays to String Conversion The toString() the method is used to convert an array to a string of array values. Output: The join() the method also works the same as toString(), but it specifies the separator: … Read more

JavaScript Dates

In the JavaScript Dates topic, you can learn how JavaScript supports date and you can create it. Date objects represent a single moment in time in a platform-independent format. Time-zones There are hundreds of time zones in our world. In JavaScript, we only care about two—Local Time and Coordinated Universal Time (UTC). By default, almost … Read more