My Blog

My WordPress Blog

My Blog

My WordPress Blog

4. Javascript

JavaScript Data Types

Data Types in JavaScript Data types basically specify what kind of data can be stored and manipulated within a program. There are six basic data types in JavaScript which can be divided into three main categories: primitive (or primary), composite (or reference), and special data types. String, Number, and Boolean are primitive data types. Object, Array, and Function (which are all […]

JavaScript Variables

What is Variable? Variables are fundamental to all programming languages. Variables are used to store data, like string of text, numbers, etc. The data or value stored in the variables can be set, updated, and retrieved whenever needed. In general, variables are symbolic names for values. There are three ways to declare variables in JavaScript: var, let and const. […]

JavaScript Syntax

Understanding the JavaScript Syntax The syntax of JavaScript is the set of rules that define a correctly structured JavaScript program. A 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. The following example shows how JavaScript statements look like: Example You will […]

Scroll to top