-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuebung03
More file actions
41 lines (26 loc) · 816 Bytes
/
uebung03
File metadata and controls
41 lines (26 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<title>Kapitel 3</title>
<meta charset="utf-8">
</head>
<body>
<p id="ausgabe" >tralala </p>
<div id="ausgabe"> Original Text </div>
<script>
//"use strict";
let ausgabe = 'Kapitel 3';
ausgabe = 3+4;
ausgabe *= 2000%60;
ausgabe *= "Jevgeni".length**"mironov".length;
ausgabe = typeof ' blabla mit viel Spaß' //string
ausgabe = typeof 0.2342134*12// NaN = not a number
// das drüber war weil zuerst typeof ausgeführt wird, und dann alles andere
ausgabe = typeof 0.2342134// number
ausgabe = typeof (0.2342134*12)// number
ausgabe = "Hello'"
document.getElementById('ausgabe').innerHTML = ausgabe;
console.log('Hello world');
</script>
</body>
</html>