Why I can't store properly the return value of a function in a variable?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/learnjavascript

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • JetBrains - Developer Ecosystem Survey 2022
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • codesandbox-client

    An online IDE for rapid web development

    Make a CodeSandbox showing something minimal that recreates this. Because var is globally scoped you might actually be changing it somewhere else in your code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts