Category: 4. Javascript

  • JavaScript Events

    Understanding Events and Event Handlers An event is something that happens when user interact with the web page, such as when he clicked a link or button, entered text into an input box or textarea, made selection in a select box, pressed key on the keyboard, moved the mouse pointer, submits a form, etc. In…

  • JavaScript Operators

    What are Operators in JavaScript Operators are symbols or keywords that tell the JavaScript engine to perform some sort of actions. For example, the addition (+) symbol is an operator that tells JavaScript engine to add two variables or values, while the equal-to (==), greater-than (>) or less-than (<) symbols are the operators that tells…

  • 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 Generating Output

    Generating Output in JavaScript There are certain situations in which you may need to generate output from your JavaScript code. For example, you might want to see the value of variable, or write a message to browser console to help you debug an issue in your running JavaScript code, and so on. In JavaScript there…

  • 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…

  • JavaScript Getting Started

    Getting Started with JavaScript Here, you will learn how easy it is to add interactivity to a web page using JavaScript. But, before we begin, make sure that you have some working knowledge of HTML and CSS. If you’re just starting out in the world of web development, start learning from here » Well, let’s get…

  • JavaScript Tutorial

    JavaScript is the most popular and widely used client-side scripting language. Client-side scripting refers to scripts that run within your web browser. JavaScript is designed to add interactivity and dynamic effects to the web pages by manipulating the content returned from a web server. JavaScript was originally developed as LiveScript by Netscape in the mid…