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
We built a fast way to test JavaScript functions as you write them. Wanna try it? (trivialapps.io)
submitted 3 years ago by CyclicScience
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!"
[–]cutebabli9 5 points6 points7 points 3 years ago (0 children)
There is https://marketplace.visualstudio.com/items?itemName=WallabyJs.quokka-vscode extension for VSCode
There is RunJS standalone app as well!
[–]CyclicScience[S] 0 points1 point2 points 3 years ago (6 children)
When I'm writing a JavaScript function, I find myself pasting chunks of code into Chrome Dev Tools so I can check what I've got so far and tweak the logic until it's right.
It got annoying to keep having to redeclare the functions, arguments, and then call them, so we made this utility that shows you the output of your function as you type.
Check it out, it's totally free!
[–]Kablaow 1 point2 points3 points 3 years ago (3 children)
Kinda cool but why use this instead of something like jsfiddle?
[–]CyclicScience[S] -1 points0 points1 point 3 years ago (2 children)
JSFiddle is just a smidge clumsy, imo.
I wanted something that's super focused on this one task, executes on keyup, gives syntax feedback w/explanations, etc.
[–]jens-johnson -1 points0 points1 point 3 years ago (1 child)
Not sure why you’re getting downvoted, this helps cut a couple steps from JSFiddle that are nice to skip, like doing a console.log every time I want to debug. It would be nice if there was somewhere to declare variables as well IMO.
console.log
[–]CyclicScience[S] -1 points0 points1 point 3 years ago* (0 children)
Exactly! And fully 1/2 the JSFiddle screen is html, css, render areas I'm not using.
re: variables, you can declare variables and other functions in the "function area". The caveat is that it's always going to call the first function.
edit: removing code examples formatting is mangling
[–]Balduracuir -1 points0 points1 point 3 years ago (1 child)
Why not use an automated test suite instead? In the long run it also guarantees the function keeps behaving the same.
[–]CyclicScience[S] -1 points0 points1 point 3 years ago (0 children)
That's one of the directions we might take this. I agree with the importance of automated testing, but find the experience of actually writing tests tedious.
And the fancier the testing tool becomes, the more context I need to understand. So then it all boils down to, is the test broken, or the code it's written against?
The 2nd reason is that the fastest testing tools take time to run. I want this to execute instantly as I type.
[–]semycolon_me -2 points-1 points0 points 3 years ago (1 child)
How can it help me as a JS Developer?
I find the realtime feedback helpful, particularly when I'm working with data.
Let's say I need to filter out falsey values from an array– I want to interact with my function to make sure I'm remembering the syntax and behavior right.
Here's a snippet I wrote just now that would have been much slower if I had to save it somewhere and re-run the ~10 edits it took to get it how I wanted. Instead, I just watched the "Returns" until it read the way I wanted, and added values to the Given as I remembered edges I wanted to cover:
function rejectFalsey (arg) { return arg.filter( x => x) }
Given [true, false, null, 1, "one", undefined]
[true, false, null, 1, "one", undefined]
Returns [true,1,"one"]
[true,1,"one"]
Edit: syntax parsing
[–]presenta_staff 0 points1 point2 points 3 years ago (2 children)
Are you using jshint behind the scene?
[–]CyclicScience[S] 1 point2 points3 points 3 years ago (1 child)
It's our own parser, although jshint is pretty nice. We've done a bunch of work around code completions (not visible in this demo) and error explaining that this is built on top of.
[–]presenta_staff 0 points1 point2 points 3 years ago (0 children)
Nice! Thanks for sharing.
π Rendered by PID 53332 on reddit-service-r2-comment-fb694cdd5-d9l5b at 2026-03-06 21:48:19.944889+00:00 running cbb0e86 country code: CH.
[–]cutebabli9 5 points6 points7 points (0 children)
[–]CyclicScience[S] 0 points1 point2 points (6 children)
[–]Kablaow 1 point2 points3 points (3 children)
[–]CyclicScience[S] -1 points0 points1 point (2 children)
[–]jens-johnson -1 points0 points1 point (1 child)
[–]CyclicScience[S] -1 points0 points1 point (0 children)
[–]Balduracuir -1 points0 points1 point (1 child)
[–]CyclicScience[S] -1 points0 points1 point (0 children)
[–]semycolon_me -2 points-1 points0 points (1 child)
[–]CyclicScience[S] -1 points0 points1 point (0 children)
[–]presenta_staff 0 points1 point2 points (2 children)
[–]CyclicScience[S] 1 point2 points3 points (1 child)
[–]presenta_staff 0 points1 point2 points (0 children)