cameri-old-retired on Nostr: # Prism test ```js let fibonacci = { *[Symbol.iterator]() { let pre = 0, cur = 1 for ...
# Prism test
```js
let fibonacci = {
*[Symbol.iterator]() {
let pre = 0, cur = 1
for (;;) {
[ pre, cur ] = [ cur, pre + cur ]
yield cur
}
}
}
```
```bash
cat << EOF
Working directory is: $PWD
Logged in as: $(whoami)
EOF
```
```js
let fibonacci = {
*[Symbol.iterator]() {
let pre = 0, cur = 1
for (;;) {
[ pre, cur ] = [ cur, pre + cur ]
yield cur
}
}
}
```
```bash
cat << EOF
Working directory is: $PWD
Logged in as: $(whoami)
EOF
```