mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
readme: javascript backend
This commit is contained in:
parent
4a43c2fa1a
commit
b5833a0826
16
README.md
16
README.md
@ -138,6 +138,22 @@ git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries [pat
|
||||
|
||||
glfw dependency will be removed soon.
|
||||
|
||||
## JavaScript backend
|
||||
|
||||
```
|
||||
fn main() {
|
||||
for i := 0; i < 3; i++ {
|
||||
println('Hello from V.js')
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
```bash
|
||||
v -o hi.js hi.v && node hi.js
|
||||
Hello from V.js
|
||||
Hello from V.js
|
||||
Hello from V.js
|
||||
```
|
||||
|
||||
## Troubleshooting:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user