The bitwise NOT (~) operator returns a number or BigInt whose binary
representation has a 1 in each bit position for which the corresponding
bit of the operand is 0, and a 0 otherwise.
1 2 3 4 5 6
constzahl: number = 101
consttext: string = "htw"
constups: number = ~"42"
level TS06
1 2 3 4 5 6
functionfn_42() { return42 }
constzahl: number = fn_42
gold
1 2 3 4 5 6
functionfn_42() { return42 }
constzahl: number = fn_42()
hacker
zahl = -1 here
1
~fn_42 = ~Number(fn_42) = ~NaN = ~0 = -1
1 2 3 4 5
functionfn_42() { return42 }
constzahl: number = ~fn_42
level TS07
1
const text = "Und sie fragte sich, was "Typescript" wohl bedeutet"
1
const text = "Und sie fragte sich, was Typescript wohl bedeutet"
level TS08
1 2 3
Ich mag viel lieber inPython programmieren
Hab ja einfach gar keinen Bock -_-
Template Literals
1 2 3 4
`Ich mag viel lieber in Python programmieren Hab ja einfach gar keinen Bock -_- `