Typescript in Z
Jump to navigation
Jump to search
Typescript in Z
//In z^3, apply:
a=1..10
In the following Typescript code, [=a=] takes the value a=1..10 from z^3 space and handles it over to typescript.
// typescript
a=23; //z3
// typescript
let num: number = [=a=];
window.num=SIN(num);
let months: string[] =[=MONTHS=]
window.ms=months;
<pre>
Then the following in z^3 space gives the value of num and ms because of the window.num and window.ms assignments.
[num,ms]
Below, [= =] operators execute z^3 code, and it intermixes with typescript code.
<pre>
[=a=SIN(1..234)=]
//coffee
t1=[=a=];
b=SIN(t1)
c={=∑(b)=}
Result is: 1.1880887371418882