Popular Post: JavaScript

JavaScript Introduction

JavaScript is a most popular programming language of the word. JavaScript is a lightweight, interpreted and object oriented language.

JavaScript Where To

In HTML, You can write JavaScript code between script tag or into separate .js file to execute JavaScript code.

JavaScript Output

In JavaScript, you can display data in different ways using innerHTML, document.write(), window.alert() & console.log().

JavaScript Syntax

The syntax of JavaScript is the set of rules that define a correctly structured JavaScript program.

JavaScript Comments

JavaScript comments can be used to explain JavaScript code. Single line comments start with //. Multi-line comments start with /* and end with */.

JavaScript Variables

In JavaScript, Any variable acts like a containers for storing data. Declare a JavaScript Variable using var, let, const keywords.

JavaScript Let

In JavaScript, Variables defined with let must be Declared before use. Variables defined with let cannot be Redeclared.

JavaScript Const

In JavaScript, The const keyword was introduced in ES6. Variables defined with const cannot be Redeclared or Reassigned.

JavaScript Operators

In JavaScript, Using operators we can perform some most of the mathematical calculations like addition (+), multiplication (*).

JavaScript Assignment

In JavaScript, Assignment operators assign values to variables. Use the assignment operator ( = ) to assign a value to a variable.

JavaScript Objects

In JavaScript, an object is a standalone entity having properties and method. For example: bike is an object with property (bike name) and method start.

JavaScript Strings

String in JavaScript is a collection of characters. String is a collection of 16 bit Unicode characters.

JavaScript String Methods

In this tutorial, you will learn about String methods and properties available in JavaScript. For example, the slice(), length, replace() etc.

JavaScript String Search

When you want to know whether a pattern is found, and also know its index within a string use indexOf(), lastIndexOf(), startsWith() & endsWith().

JavaScript Numbers

In JavaScript, The Number is a primitive data type used for positive or negative integer, float, binary, octal, hexadecimal & exponential values.

JavaScript Number Methods

Number is a primitive wrapper object used to represent and manipulate numbers. some number methods are toString(), toExponential() & toFixed().

JavaScript Arrays

An Array in JavaScript is an indexed collection of values of various datatypes. Array is a zero index based.

JavaScript Array Methods

In JavaScript, some methods are used to perform operations on Array elements like toString(), reverse(), pop(), push() and splice.