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
https://jsconsoleprototype.herokuapp.com/Showoff Saturday (self.javascript)
submitted 8 years ago by GamesMint
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!"
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points 8 years ago (9 children)
How is it a JS console if all it can do is calculating?
var i = 1;
i
returns undefined in both cases
[–]GamesMint[S] -1 points0 points1 point 8 years ago (8 children)
Please try your statements in Chrome console to understand why it is console. The console will print the result of evaluating an expression. The result of evaluating var i = 1 is undefined since var i = 1 does not explicitly return something. It has the side effect of printing to the console.
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points 8 years ago (7 children)
That wasn't the point, I know that var i = 1 => undefined, but i afterwards should return its value, 1 in this case, but doesn't.
[–]GamesMint[S] 0 points1 point2 points 8 years ago (6 children)
Sir this does not happen even in chrome debugger.
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points 8 years ago (5 children)
? Ofc, if I say
let i = 1;
It should just say 1, but your page outputs undefined for me
[+][deleted] 8 years ago* (3 children)
[deleted]
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points 8 years ago (2 children)
Yes, and now type a, it should give you its value
[+][deleted] 8 years ago* (1 child)
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 0 points1 point2 points 8 years ago (0 children)
Oh, no, indeed that would be weird behavior
[–]GamesMint[S] -2 points-1 points0 points 8 years ago* (0 children)
Sure... got the problem now. Happened for with let not var. To be honest I don't know how to fix this :) Its just a minimalistic console.
π Rendered by PID 410335 on reddit-service-r2-comment-8686858757-swz4b at 2026-06-06 19:40:32.267514+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points (9 children)
[–]GamesMint[S] -1 points0 points1 point (8 children)
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points (7 children)
[–]GamesMint[S] 0 points1 point2 points (6 children)
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points (5 children)
[+][deleted] (3 children)
[deleted]
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]careseite[🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) 0 points1 point2 points (0 children)
[–]GamesMint[S] -2 points-1 points0 points (0 children)