0% found this document useful (0 votes)
10 views

23-CP-82 JavaScript Report

The document provides an overview of JavaScript topics including syntax, variables, operators, functions, objects, events, strings, arrays, dates, math, comparisons, loops, break and continue statements, iterables, sets, maps, data types, type conversion, errors, hoisting, this keyword, arrow functions, classes, modules, JSON, debugging, style guides, best practices, common mistakes, performance, and reserved words.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

23-CP-82 JavaScript Report

The document provides an overview of JavaScript topics including syntax, variables, operators, functions, objects, events, strings, arrays, dates, math, comparisons, loops, break and continue statements, iterables, sets, maps, data types, type conversion, errors, hoisting, this keyword, arrow functions, classes, modules, JSON, debugging, style guides, best practices, common mistakes, performance, and reserved words.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

University of

Engineering
& Technology Taxila
1st Semester

Submitted to:
Sir Shahryar khan
Submitted by:
Abdur Rehman Saeed
Roll Number:
23-CP-82
Section:
Omega

Department of computer engineering


University of engineering and technology
JavaScript Report
JS Introduction:
This section usually provides a brief introduction to JavaScript, explaining its role
in web development, its features, and how it interacts with HTML and CSS.

JavaScript Syntax:
Here, you can expect to learn about the basic syntax of JavaScript, including
variables, data types, operators, and statements.
JavaScript Comments:
JavaScript comments can be used to explain JavaScript code, and to make it more
readable.

JavaScript Variables:
This tab covers the concept of variables in JavaScript, how to declare them, and
the different types of data they can hold.

JavaScript Operators:
The Operators section typically explains arithmetic, assignment, comparison,
logical, and other operators used in JavaScript.
JavaScript Functions:
In this tab, you'll learn about functions, how to declare and call them, parameters,
and return values.

JavaScript Objects:
This section introduces JavaScript objects, including object properties, methods,
and how to create and manipulate objects.
JavaScript Events:
Here, you'll learn about handling events in JavaScript, such as click events, mouse
events, and keyboard events.

JavaScript Strings:
The Strings section covers string manipulation, methods, and properties in
JavaScript.
JavaScript Arrays:
This tab provides information on arrays in JavaScript, including array methods
and operations.
JavaScript Dates:

JavaScript Math:
The JavaScript Math object allows you to perform mathematical tasks on numbers.

JavaScript Comparisons:
Comparison and Logical operators are used to test for true or false.
JavaScript Switch:
The switch statement is used to perform different actions based on different
conditions.
JavaScript For Loop:
Loops can execute a block of code a number of times.

JavaScript Break:
The break statement "jumps out" of a loop. The continue statement "jumps over"
one iteration in the loop.

JavaScript Iterables:
Iterables are iterable objects (like Arrays). Iterables can be accessed with simple
and efficient code. Iterables can be iterated over with for..of loops
JavaScript Sets:
A JavaScript Set is a collection of unique values.

JavaScript Maps:
A Map holds key-value pairs where the keys can be any datatype. A Map
remembers the original insertion order of the keys.

JavaScript typeof:
You can use the typeof operator to find the data type of a JavaScript variable.
JavaScript Type Conversion:
JavaScript variables can be converted to a new variable and another data type:

 By the use of a JavaScript function


 Automatically by JavaScript itself

JavaScript Bitwise:
JavaScript stores numbers as 64 bits floating point numbers, but all bitwise
operations are performed on 32 bits binary numbers.
JavaScript Regular Expressions:
A regular expression is a sequence of characters that forms a search pattern.

JavaScript Errors:
When executing JavaScript code, different errors can occur. Errors can be coding
errors made by the programmer, errors due to wrong input, and other
unforeseeable things.

JavaScript Hoisting:
Hoisting is JavaScript's default behavior of moving declarations to the top.
JavaScript Use Strict:
"use strict"; Defines that JavaScript code should be executed in "strict mode".

The JavaScript this Keyword:


In JavaScript, the this keyword refers to an object. Which object depends on
how this is being invoked (used or called).

JavaScript Arrow Function:


Arrow functions were introduced in ES6.
JavaScript Classes:
ECMAScript 2015, also known as ES6, introduced JavaScript Classes. JavaScript
Classes are templates for JavaScript Objects.
JavaScript Modules:
JavaScript modules allow you to break up your code into separate files.

JavaScript JSON:
JSON is a format for storing and transporting data. JSON is often used when data
is sent from a server to a web page.
JavaScript Debugging:
Errors can (will) happen, every time you write some new computer code.

JavaScript Style Guide:


Always use the same coding conventions for all your JavaScript projects.

JavaScript Best Practices:


Avoid global variables, avoid new, avoid ==, avoid eval()
JavaScript Common Mistakes:
This chapter points out some common JavaScript mistakes.

JavaScript Performance:
How to speed up your JavaScript code.
JavaScript Reserved Words:
In JavaScript you cannot use these reserved words as variables, labels, or function
names:

abstract arguments await* boolean

break byte case catch

char class* const continue

debugger default delete do

double else enum* eval

export* extends* false final

finally float for function

goto if implements import*

in instanceof int interface

You might also like