Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8797199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:48:11+00:00 2026-06-13T23:48:11+00:00

I read a book called Professional Javascript for web developer and it says: Variable

  • 0

I read a book called “Professional Javascript for web developer” and it says: “Variable is assigned by Reference value or Primitive Value. Reference values are objects stored in memory”. And then it says nothing about how Primitive value is stored. So I guess it isn’t stored in memory. Based on that, when I have a script like this:

var foo = 123;

How does Javascript remember the foo variable for later use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:48:13+00:00Added an answer on June 13, 2026 at 11:48 pm

    A variable can hold one of two value types: primitive values or reference values.

    • Primitive values are data that are stored on the stack.
    • Primitive value is stored directly in the location that the variable accesses.
    • Reference values are objects that are stored in the heap.
    • Reference value stored in the variable location is a pointer to a location in memory where the object is stored.
    • Primitive types include Undefined, Null, Boolean, Number, or String.

    The Basics:

    Objects are aggregations of properties. A property can reference an object or a primitive. Primitives are values, they have no properties.

    Updated:

    JavaScript has 6 primitive data types: String, Number, Boolean, Null, Undefined, Symbol (new in ES6). With the exception of null and undefined, all primitives values have object equivalents which wrap around the primitive values, e.g. a String object wraps around a string primitive. All primitives are immutable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read this book section about git branches. I have create a branch called
I read this in Kathy Sierra's book: Local variables are sometimes called stack, temporary,
I read a book awhile back called PHP Design Patterns and Practice, and ever
A while back I read (before I lost it) a great book called GUI
While reading a book called Let us C I read that a function showbit()
I read a book called 'Rails 3 in Action' and made two pages: 'index'
I am reading a book called .NET Gotchas (well worth a read IMO), which
I have read in C++ : The Complete Reference book the following Even though
I have read the book professional asp.net design patterns by scott millett and in
I'm trying to read an online book called modern 3d graphics programming, but the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.