inital commit

This commit is contained in:
schrom01 2022-10-13 08:15:59 +02:00
commit 8818008a13
3 changed files with 1140 additions and 0 deletions

BIN
praktikum.pdf Normal file

Binary file not shown.

17
repl.txt Normal file
View File

@ -0,0 +1,17 @@
let factorial = (n) => n<=1 ? 1 : n * factorial(n-1)
factorial(20)
factorial.doc = "Fakultätsfunktion"
factorial.created = "26.08.2021"
factorial
factorial(5, 10, 20)
let param = (a, b, c) => [a, b, c]
param(1)
param(1, 2, 3, 4)
let data = [10, 11, 12, 13, 14]
param(42, ...data)
let divmod = (m, n) => [Math.floor(m/n), m%n]
let [div, rest] = divmod(17, 7)
div + rest
const prefix = (pre) => (text) => pre + text
const mod = prefix("mod_")
mod("getData")

1123
scripts.js Normal file

File diff suppressed because it is too large Load Diff