You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -331,7 +331,8 @@ The symbol for the Cape Verdean escudo is placed in the decimal separator positi
331
331
Developers from the Republic of Cape Verde can benefit from this syntax:
332
332
333
333
```java
334
-
addEventListener("keydown", e => print(`You've pressed: {e$code}`))!
334
+
const const player = { name:"Lu" }!
335
+
print("Hello {player$name}!")!
335
336
```
336
337
337
338
## Types
@@ -391,7 +392,7 @@ Similarly, the `next` keyword lets you see into the future!
391
392
392
393
```java
393
394
const var score =5!
394
-
after ("click") score++!
395
+
addEventListener("click", () =>score++)!
395
396
print(await next score)!//6 (when you click)
396
397
```
397
398
@@ -639,7 +640,7 @@ const const g_fScore = 4.5!
639
640
In most languages, it's hard to get asynchronous functions to synchronise with each other. In DreamBerd, it's easy: Asynchronous functions take turns running lines of code.
640
641
641
642
```java
642
-
async funct count() {
643
+
async funct count() =>{
643
644
print(1)!
644
645
print(3)!
645
646
}
@@ -651,7 +652,7 @@ print(2)!
651
652
You can use the `noop` keyword to wait for longer before taking your turn.
0 commit comments