This commit is contained in:
24
01_grundlagen/uebungen/u01_console.html
Normal file
24
01_grundlagen/uebungen/u01_console.html
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Übung 1: In die Konsole geloggt</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div class="container py-5">
|
||||||
|
<div class="alert alert-primary">
|
||||||
|
<h2>Übung 1: In die Konsole geloggt</h2>
|
||||||
|
<p>Gib deinen Namen in der Konsole aus.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<script>
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
console.log('Philippe', 'Torrel');
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
01_grundlagen/unterricht/tag01/05_console-log.html
Normal file
33
01_grundlagen/unterricht/tag01/05_console-log.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>console.log()</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div class="container py-5">
|
||||||
|
<h1>console.log()</h1>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<script>
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
console.log('Hello World');
|
||||||
|
console.log('...log message');
|
||||||
|
|
||||||
|
console.log('Philippe', 'Torrel', 42);
|
||||||
|
|
||||||
|
console.warn('Hinweis im Konsolenfenster');
|
||||||
|
console.info('Info im Konsolenfenster');
|
||||||
|
console.error('Fehler im Konsolenfenster');
|
||||||
|
|
||||||
|
console.table(['Christian', 'Florian', 'Benjamin', 'Stefan']);
|
||||||
|
console.table({ firstName: 'John', lastName: 'Wick' });
|
||||||
|
|
||||||
|
console.dir({ firstName: 'John', lastName: 'Wick' });
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user