make strings object

This commit is contained in:
2023-03-19 01:10:23 +00:00
parent c725d26c01
commit 2e04bb0152
26 changed files with 528 additions and 124 deletions

10
spec.md
View File

@@ -37,7 +37,7 @@ setting variables returns the value, which can be used.
example:
```javascript
if (x = 10) > 5 do
if ((x = 10) > 5) do
term.log(x, 'is bigger than 5')
```
@@ -98,10 +98,10 @@ example:
```javascript
let password = do
let password = input("set password: ")
while len(password) < 8 do
log("password must be longer then 8 characters!")
password = input("set password: ")
let password = passwordInput("set password: ")
while (password.length < 8) do
term.log("password must be longer then 8 characters!")
password = passwordInput("set password: ")
return password
term.log("your password is", password)