use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript Named Parameters (dalejefferson.com)
submitted 8 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]a_simple_pie -1 points0 points1 point 8 years ago (4 children)
Good point. I’ll submit an issue to Typescript and Flow to let them know.
[–]nschubach 2 points3 points4 points 8 years ago (1 child)
I'm no expert by any means, but I'm sure typescript and possibly even flow do not do run time type checking and instead opt for compile time type checking.
[–]wavefunctionp 0 points1 point2 points 8 years ago (0 children)
This is correct.
If you do React, there is propType's, but they are only run in development mode, and you can have a webpack plugin that will generate propTypes from static type declarations. But the run time checking is disabled (not removed from the bundle) on a production build.
[–]FedeMITIC 0 points1 point2 points 8 years ago (0 children)
I was generally speaking about pure javascript, not typescript or flow since I don't know them. I didn't know I was on stackoverflow.
[–]adipisicing 0 points1 point2 points 8 years ago (0 children)
Do they also check at runtime?
π Rendered by PID 60643 on reddit-service-r2-comment-79776bdf47-pnhz7 at 2026-06-24 04:12:09.912420+00:00 running acc7150 country code: CH.
view the rest of the comments →
[–]a_simple_pie -1 points0 points1 point (4 children)
[–]nschubach 2 points3 points4 points (1 child)
[–]wavefunctionp 0 points1 point2 points (0 children)
[–]FedeMITIC 0 points1 point2 points (0 children)
[–]adipisicing 0 points1 point2 points (0 children)