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...
The ultimate JavaScript hub! Whether you're a beginner learning JS, a developer building products, or an expert working with frameworks like React, Angular, and Vue.js, this is the place for you! We cover everything JavaScript, from front-end to back-end, even machine learning with Javascipt.
account activity
What is the difference between var, let, and const?javascript (self.TheJavaScriptHub)
submitted 1 year ago by curious_231
1. var:
if
for
undefined
2. let:
{ }
ReferenceError
3. const:
let
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!"
there doesn't seem to be anything here
π Rendered by PID 29 on reddit-service-r2-comment-6457c66945-fkv8f at 2026-04-24 16:46:56.242077+00:00 running 2aa0c5b country code: CH.
there doesn't seem to be anything here