0% found this document useful (0 votes)
7 views9 pages

JavaScript Basics: Data Types & Structure

The document provides an overview of JavaScript, highlighting its connection to HTML and the use of script elements. It discusses data types, including primitive types like Number and String, as well as concepts like undefined and null. Additionally, it covers the use of functions, objects, and arrays in JavaScript, emphasizing code separation through external files.

Uploaded by

hisham2mon
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views9 pages

JavaScript Basics: Data Types & Structure

The document provides an overview of JavaScript, highlighting its connection to HTML and the use of script elements. It discusses data types, including primitive types like Number and String, as well as concepts like undefined and null. Additionally, it covers the use of functions, objects, and arrays in JavaScript, emphasizing code separation through external files.

Uploaded by

hisham2mon
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Java script is ECMAScript and the some ES version there here

CREATING IN JAVA SCRIPT FILE TO CONNECT IN HTML FILE

First to using in script element in a html page for using in inside the body and the inside the script all are
linked in java script

The button element in using in java script inside in short method is btn
In the above of the link is the internal connect in onother way of the external link to connecting in
javascript file name to declare
EG: script< src=”it is an external file name “></src>

In this external file is using in the script inside code is already write in javascript file is called sepration of
the code

The console is the not code for the js to using the code to the console
Data types

The seven types of primitive data types

Number,string,Boolean,undefined,null,symbol,binint

NaN(not a number) example for like the 10+NaN the output of the following code the NaN same as

The 1/0 taken in infinity

The 1/infinity taken in 0

Lets the undefined is first declare the variable and taken output is undefined and the write in any place
to write variable name taken in same output

Different between null and not null

In three === assigns are using in deferent between two things

like
What is the meaning of undefined

What is reference in js

It is is BigInit
The bigint was initializing in the big number enter after the last of the number in (n) using

Three different types of reference

Object array and function

The array is declared in array was lets num=[1,2,3,4,5];


The object is used to store various key collection and more complex entities

The function in a js to the function is to be used for the [Link]() or c,c++ calling function to use

Like add();

The java script variables

You might also like