dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Primitive and reference values

  1. #1
    Join Date
    Sep 2015
    Posts
    63

    Primitive and reference values

    This is a fragment from the book "Professional Javascript for Web Developers 3rd edition" talking about function arguments :

    -------------

    "ECMAScript variables may contain two different types of data: primitive values and reference values. Reference values are objects stored in memory. "

    -------------

    So.. primitive values are not stored in memory? Where are they located then?

    Thanks in advance!
    Bruno.

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    4,737
    I did a google search and the results for "Primitives" came back to Balham, London.

    I guess it all depends on the language or the environment, some store in the stack or the heap or the registers or could be predefined items in an area of runtime.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    Dec 2005
    Location
    TX
    Posts
    7,835
    Quote Originally Posted by \\.\ View Post
    I did a google search and the results for "Primitives" came back to Balham, London.
    Cute

  4. #4
    Join Date
    Sep 2015
    Posts
    63
    Quote Originally Posted by \\.\ View Post
    I did a google search and the results for "Primitives" came back to Balham, London.

    I guess it all depends on the language or the environment, some store in the stack or the heap or the registers or could be predefined items in an area of runtime.
    Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles