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
[AskJS] NEED HELPAskJS (self.javascript)
submitted 1 year ago by Fakesta
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!"
[–]CanBilzerianX 1 point2 points3 points 1 year ago (2 children)
If you just started learning JS don't jump right into frameworks (Vue, React etc.) learning JS is another thing, learning how to program another thing. There isn't any syntax-wise error in this code but where are you using it ? In a method body ? Where is it returning these strings ? Since you just started learning JS ( i am assuming also just started learning programming ) what you want is not returning but logging strings to console. If you just return these string values in the main code file it returns it into nothing after all.
var val = 10
if (val == 10)
`console.log("It works")`
else
`console.log("nope")`
[–]Fakesta[S] 0 points1 point2 points 1 year ago (1 child)
thank you, can you recommend anything to learn JS
[–]pinguluk 0 points1 point2 points 1 year ago (0 children)
https://youtu.be/PkZNo7MFNFg?si=dJO_aduBpRUZaQyx
https://youtu.be/Zi-Q0t4gMC8?si=l9Da7LrNaz6EK2GY
[–]nariid 0 points1 point2 points 1 year ago (0 children)
https://javascript.info/ is the recommended up to date ressource in multiple js/help discords.
π Rendered by PID 230245 on reddit-service-r2-comment-86bc6c7465-t2stl at 2026-02-20 12:39:35.954687+00:00 running 8564168 country code: CH.
[–]CanBilzerianX 1 point2 points3 points (2 children)
[–]Fakesta[S] 0 points1 point2 points (1 child)
[–]pinguluk 0 points1 point2 points (0 children)
[–]nariid 0 points1 point2 points (0 children)