Selasa, 06 Februari 2024

JavaScript

 JavaScript Introduction

-> Client-Side Scripting Language

-> It is untyped, multi paradigm, functional, event driven

-> It is Interpreted by browser's javascript engine


JavaScript Advantages

-> Less Server Interactions 

-> Better Performance

-> Richer Interface

-> Increased Interactivity


JavaScript Arrays

-> Let's you store multiple values in a single variable

-> It stores a fixed size sequential collection of elements

-> To access any element, we need to pass the index


WRITING DATA

--> var fruits = new Array ("apple","orange","mango");

--> var fruits = ["apple","orange","mango"];


READING DATA

--> fruits [0] is the first element

--> fruits [1] is the second element

--> fruits [2] is the third element

Tidak ada komentar:

Posting Komentar