readme: javascript backend

pull/1989/head
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
1 changed files with 16 additions and 0 deletions

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: