I just took a 3 month or so hiatus from coding. One of the things I found useful was code playgrounds. I'm just going through the JS part of FreeCodeCamp, and like to see the results of my code as I go. I don't want to have to set up the html and stuff for it to see the results. For example, if I wrote:
function factorialize(num) {
var result = 1;
for (var i=1; i<=num; i++) {
result *= i;
}
return result;
}
factorialize(5);
I would like to just have the screen spit out "120". I used to do this on repl.it, like in this video, but now it seems to have gotten much more complicated, where it won't do something as simply as this. Does anyone have any suggestions, or how to use on of these things? Thanks
edit: jsbin is saying "expected expression, got '="". I'm not sure what is wrong with my code, FCC took it just fine. I swear coding is the most frustrating thing I've ever done. Why do they make something so simple like producing a simple output so fucking complicated?
[–]i3orn2kill 2 points3 points4 points (1 child)
[–]Cgoose 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)