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

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

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 Comments

JavaScript comments are used to deliver messages. It is used to add information about the code, warnings, or suggestions so that end-user can easily interpret the code. Comments are annotations in the source code of a program that are ignored by the interpreter, and therefore have no effect on the actual output of the code. Comments … Read more

JavaScript Let

The let keyword is used for variables declaration in JavaScript with block scope. The variables defined with JavaScript let word cannot be redeclared. We accidentally cannot do this. The syntax for the let keyword is given below: JavaScript Let – Global Scope The variables that we declared in the main body or outside the function … Read more

JavaScript Arrays

JavaScript Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations. Neither the length of the JavaScript arrays nor the types of its elements are fixed. Since an array’s length can change at any time, and data can be stored at non-contiguous locations in the array, JavaScript arrays are not guaranteed … Read more

JavaScript Assignment

The JavaScript assignment operators are used to assign the right-side operand values to variables. The = sign is used for assigning a value to a variable. For example, we can perform the increment using the JavaScript assignment operator in the following way: JavaScript Assignment – Operators Following are some assignment operators used in JavaScript: Operator … Read more