Typescript in Z

From ZCubes Wiki
Revision as of 11:28, 14 February 2025 by Joseph (talk | contribs) (→‎Typescript in Z)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;

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.

[=a=SIN(1..234)=]
//coffee
t1=[=a=];
b=SIN(t1)
c={=∑(b)=}

Result is: 1.1880887371418882