This commit is contained in:
49
01_grundlagen/uebungen/u11_rechnen-in-strings.html
Normal file
49
01_grundlagen/uebungen/u11_rechnen-in-strings.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Übung 11: Rechnen mit Strings?</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">
|
||||
<h2>Übung 11: Rechnen mit Strings?</h2>
|
||||
<table class="table table-striped">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<td>Ausdruck</td>
|
||||
<td>Rückgabewert</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>'Hallo' + 'Welt'</td>
|
||||
<td>HalloWelt</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>'Hallo' + ' Welt'</td>
|
||||
<td>Hallo Welt</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>'1' + '1'</td>
|
||||
<td>11</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1 + 1</td>
|
||||
<td>2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>'1 + 1'</td>
|
||||
<td>1 + 1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</main>
|
||||
<script>
|
||||
'use strict';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user