Popular Post: JavaScript

Image

JavaScript Introduction

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

Image

JavaScript Where To

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

Image

JavaScript Output

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

Image

JavaScript Syntax

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

Image

JavaScript Comments

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

Image

JavaScript Variables

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

Image

JavaScript Let

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

Image

JavaScript Const

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

Image

JavaScript Operators

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

Image

JavaScript Assignment

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

Image

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.

Image

JavaScript Strings

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

Image

JavaScript String Methods

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

Image

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().

Image

JavaScript Numbers

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

Image

JavaScript Number Methods

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

Image

JavaScript Arrays

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

Image

JavaScript Array Methods

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