100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting CheatSheet Web Development 2 Hogent

Rating
-
Sold
2
Pages
43
Uploaded on
18-05-2021
Written in
2020/2021

Uitgebreide CheatSheet icl. voorbeelden uit de slides van het gehele 2e semester voor Web Development 2 aan HoGent

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
May 18, 2021
File latest updated on
May 19, 2021
Number of pages
43
Written in
2020/2021
Type
Summary

Subjects

Content preview

Hoofdstuk 1: JavaScript
Aan de slag met JS!
Via het src-attribuut van het script element in het HTML bestand, verwijs je naar het apparte JavaScript bestand.


<script src = ".../js/hello.js"> </script>



Code structuur

Statements

Toont de uitvoer in de console.


console.log()


Toont de uitvoer in een simpel dialoogvenster.


alert()



Comments

Commment over één lijn.


//comment


Comment over meedere lijnen.


/*dit is
een
comment*/



JS strict mode

JavaScript runnen in 'strict mode'.


"use strict"



Bouwstenen: variabelen

Variabelen

Gebruik het keyword let om een variabele te declareren. - De naam van een variabele mag enkel letters, cijfers en de symbolen $ en _ bevatten en de naam
mag niet starten met een cijfer. - Gebruik camelCasing. - Hoofdlettergevoelig!


let


Via de assignment operator = kan je een waarde toekennen aan een variabele.


let message;
message = 'Hello';


Je kan declaratie en assignment (~initialisering) combineren.


let message = 'Hello";



Constanten

Variabelen die je moet initialiseren bij declaratie en die nadien niet meer van waarde kunnen veranderen.
$14.98
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
bp612

Get to know the seller

Seller avatar
bp612 Hogeschool Gent
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
4 year
Number of followers
2
Documents
1
Last sold
1 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions