Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Notes de cours

Java script for begginers

Note
-
Vendu
-
Pages
10
Publié le
25-02-2023
Écrit en
2022/2023

JavaScript is a programming language that enables you to create dynamic, interactive web pages. JavaScript is easy to learn for beginners and has many advanced features for experienced programmers. This tutorial will teach you the basics of JavaScript, including how to write code, execute scripts, and use JavaScript libraries.

Montrer plus Lire moins
Établissement
Cours









Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Cours

Infos sur le Document

Publié le
25 février 2023
Nombre de pages
10
Écrit en
2022/2023
Type
Notes de cours
Professeur(s)
Sudha agarwal
Contenu
Toutes les classes

Sujets

Aperçu du contenu

INDEX

Introduction JS Math

JS Syntax JS Dates

JS Statement JS Arrays

JS Comments JS Comparisons

JS Variables JS Conditions

JS Operators JS Loops

JS Arithmetic JS Type Conversion

JS Data Types JS Regular Expressions

JS Functions JS Debugging

JS Objects JS Hoisting

JS Scope JS Strict Mode

JS Events JS Forms

JS Strings JS Objects

JS Numbers JS DOM

JS Browser BOM




WHAT IS JAVASCRIPT
JavaScript is:
Is a lightweight, interpreted programming language.
used to create interactive effects within web browsers.
Designed for creating network-centric applications
Complementary to and integrated with Java
Complementary to and integrated with HTML
Open and cross-platform
JAVASCRIPT SYNTAX
A JavaScript consists of JavaScript statements that are placed
within the <script>... </script> HTML tags in a web page.

, The <script> tag alert the browser program to begin interpreting all the text between these tags
as a script. So simple syntax of your JavaScript will be as follows
JAVASCRIPT IN <HEAD> OR <BODY>
Scripts can be placed in the <body>, or in the <head> section of
an HTML page, or in both.

External JavaScript:
Scripts can also be placed in external files.
External scripts are practical when the same code is used in
many different web pages.
JavaScript files have the file extension .js.
<!DOCTYPE html>
<html>
<head>
<script src="firstScript.js"></script>
</head>
</html>
EXTERNAL JAVASCRIPT ADVANTAGES
Placing JavaScript in external files has some advantages:

It separates HTML and code
It makes HTML and JavaScript easier to read and maintain
Cached JavaScript files can speed up page loads

JAVASCRIPT FUNCTIONS AND EVENTS
A JavaScript function is a block of JavaScript code, that can be
executed when "asked" for.

For example, a function can be executed when an event occurs,
like when the user clicks a button.
SEMICOLONS ARE OPTIONAL
Simple statements in JavaScript are generally followed by a
semicolon character, just as they are in C, C++, and Java.

JavaScript, however, allows you to omit this semicolon if your statements are each placed on a
separate line. For example, the following code could be written without semicolons


<script language="javascrip”>
<!–
var1 = 10 var2 = 20
//--> </script>

CASE SENSITIVITY
JavaScript is a case-sensitive language. This means that language keywords, variables,
function names, and any other identifiers must always be typed with a consistent capitalization
of letters.
9,66 €
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur
Seller avatar
peterranadive

Faites connaissance avec le vendeur

Seller avatar
peterranadive computer coding languages
S'abonner Vous devez être connecté afin de pouvoir suivre les étudiants ou les formations
Vendu
0
Membre depuis
2 année
Nombre de followers
0
Documents
3
Dernière vente
-

0,0

0 revues

5
0
4
0
3
0
2
0
1
0

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions