-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath
More file actions
31 lines (21 loc) · 650 Bytes
/
math
File metadata and controls
31 lines (21 loc) · 650 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
<!DOCTYPE html>
<html>
<head>
<title>JS Kurs</title>
<meta charset="utf-8">
</head>
<body>
<p id="ausgabe" >tralala </p>
<div id="ausgabe2"> Original Text </div>
<script>
"use strict";
console.log(Math.cos(3.14))
console.log(Math.cos(180))
document.getElementById('ausgabe').innerHTML=`Ihr Verbrauch pro 100km` +
` beträgt ${verbrauch.toFixed(2)}l.`
document.getElementById('ausgabe2').innerHTML=
`mit der Tankgröße von ${tankGr}l kommen Sie gerade mal ${(tankGr*strecke/benzin).toFixed(2)} weit!`
console.log(ausgabe)
</script>
</body>
</html>