Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lehrkraefte:blc:informatik:ffprg1-2021:js:helloworld [2021/04/28 12:40] – created Ivo Blöchliger | lehrkraefte:blc:informatik:ffprg1-2021:js:helloworld [2021/04/29 05:15] (current) – Ivo Blöchliger | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Hello World ====== | ||
| + | * Legen Sie einen Ordner '' | ||
| + | * Öffnen Sie die Datei '' | ||
| + | <code html hello.html> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <meta charset=" | ||
| + | < | ||
| + | <script src=" | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <code javascript hello.js> | ||
| + | // Globale Funktion hello definieren | ||
| + | // Code zwischen { und } | ||
| + | |||
| + | function hello() { | ||
| + | // Auf der Konsole ausgeben (Browser: F12 -> Console) | ||
| + | console.log(" | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||