This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
<main>
|
||||
<div class="container py-5">
|
||||
<h1>Kommentare in JS</h1>
|
||||
|
||||
<!-- Kommentar in HTML -->
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
|
||||
@@ -36,7 +36,9 @@
|
||||
console.log(5 * 4); // => 20
|
||||
console.log(5 / 4); // => 1.25
|
||||
console.log(10 % 3); // => 1 , da 10 - 3 * 3 = 1.
|
||||
|
||||
console.log(5 ** 4); // => 625 , da 5 * 5 * 5 * 5 = 625.
|
||||
console.log(Math.pow(5, 4)); // => 625 , da 5 * 5 * 5 * 5 = 625.
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
</main>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
console.log(typeof 4 + 4); // => 'number' + 4 -> 'number4'
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user