Y
Hacker News
new
|
ask
|
show
|
jobs
by
recursive
2708 days ago
Almost. This is valid javascript.
[1].push("foo");
1 comments
alangpierce
2708 days ago
TypeScript code can be transpiled and executed even if there are type errors (just like how a linter doesn't stop you from running your code), so in that sense, it's also valid TypeScript.
link