1
0
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:
Alexander Medvednikov 2019-09-15 04:10:12 +03:00 committed by GitHub
parent 4a43c2fa1a
commit b5833a0826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,22 @@ git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries [pat
glfw dependency will be removed soon. 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: ## Troubleshooting: