Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Comprehensive JavaScript Cheat Sheet, Cheat Sheet of Computer Programming

An overview of essential JavaScript concepts and syntax. It covers variables, data types, and operators. JavaScript is a full-fledged programming language that allows developers to add interaction and functionality to online pages. This cheat sheet is useful for web developers who want to quickly reference JavaScript syntax and concepts.

Typology: Cheat Sheet

2022/2023

Available from 07/16/2023

diptimai-sahoo
diptimai-sahoo ๐Ÿ‡ฎ๐Ÿ‡ณ

1 document

1 / 5

Toggle sidebar

Related documents


Partial preview of the text

Download Comprehensive JavaScript Cheat Sheet and more Cheat Sheet Computer Programming in PDF only on Docsity! Title: Comprehensive JavaScript Cheat Sheet INTRODUCTION :- High-level, interpreted programming languages like JavaScript are frequently employed to build dynamic, interactive webpages. Brendan Eich created it in 1995, and it has since grown to be one of the most widely used languages for online development. JavaScript is a full-fledged programming language that allows developers to add interaction and functionality to online pages, in contrast to HTML and CSS, which are markup languages used to structure and style web content. You can make API queries, manage user events, calculate, manipulate data, design responsive user interfaces, and much more with JavaScript. This cheat sheet provides an overview of essential JavaScript concepts and syntax. 1. Variables: โ— Declaring variables: let variableName; - declares a variable that can be reassigned. const constantName; - declares a variable with a constant value (read- only). โ— Assigning values: variableName = value; - assigns a value to a variable. โ— Variable types: JavaScript has dynamic typing, meaning variables can hold different types of values such as numbers, strings, booleans, objects, arrays, null, and undefined. 2. Data Type:- โ— Number: Represents numeric values, including integers and floating-point numbers. โ— String : Represents textual data enclosed in single or double quotes โ— Boolean: Represents the logical values true or false. โ— Object : Represents a collection of key-value pairs and can contain functions, variables, and other objects. โ— Array: Represents an ordered list of values and can store multiple values of any type โ— Null: Represents the intentional absence of any object value. โ— Undefined : Represents an uninitialized variable or missing property. 3. Operators: โ— Arithmetic: Perform mathematical operations on numbers. + (addition), - (subtraction), * (multiplication), / (division), % (modulus). โ— Assignment: Assign values to variables. = (assignment), += (addition assignment), -= (subtraction assignment), *= (multiplication assignment), /= (division assignment). โ— Comparison: Compare values and return a Boolean result. == (equality), === (strict equality), != (inequality), !== (strict inequality), > (greater than), < (less than), >= (greater than or equal to), <= (less than or equal to).
Docsity logo



Copyright ยฉ 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved