Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.


why JavaScript

JavaScript comes in addition to

JavaScript


JavaScript characteristics

let’s start with a few examples that use JS
objective is just to give you a glimpse of what is possible, will dig on details later on


example #1

in the following example :


Loading...

ex1 - takeaways (1)


ex1 - takeaways (2) - scope

about visibility of symbols: variable and function names


example #2

in this further example :


Loading...

ex2 - takeaways (1)


ex2 - takeaways (2) - DOM


ex2 - takeaways (3) - async


ex2 - takeaways (4) - loading

but more on this in the next notebook


example #3

in this further example :


Loading...

ex3 - takeaways (1)


let’s wrap it up

event-driven


callbacks

the historical paradigm for event-driven programming :

in our 3 examples, we have seen 4 callbacks already


take home message

as far as Web frontend, JavaScript :