lite-code-editor
: a lightweight source code editor
Find more about lite-code-editor
in this demo,
on github,
or on npmjs.
Also take a look at js-func-editor and
the JSY transpiling jsy-func-editor.
Javascript:
if (true != false) {
console.log(
'A log message',
{ ts: new Date,
meta: import.meta }
)
}
if true != false ::
console.log @
'A log message',
@{} ts: new Date,
meta: import.meta
def fib(n):
a, b = 0, 1
while a < n:
print(a, end=' ')
a, b = b, a+b
print()
fib(1000)
fn main() {
println!("Hello World!");
}
iterator oddNumbers[Idx, T](a: array[Idx, T]): T =
for x in a:
if x mod 2 == 1:
yield x
for odd in oddNumbers([3, 6, 9, 12, 15, 18]):
echo odd
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}