Just JavaScript - In The Beginning Was The Object
Written by Ian Elliot   
Thursday, 13 March 2014
Article Index
Just JavaScript - In The Beginning Was The Object
Hoisting
Summary and Coming Next

Summary

  • Everything in JavaScript is an object

  • The basic object is the empty object literal {}

  • Object have properties which are name:value pairs

  • The value of a property is always an object and hence an object can represent a general tree structure by nesting objects

  • The Global Object provides properties that can be used as if they were global variables

  • The builtin objects String and Number allow data to be stored in objects as values.
  • Primitive data values behave as if they only have the default properties of the object. This is done for reasons of efficiency.
  • Objects have values which cannot be changed

  • Expressions create new objects with values derived from the objects involved in the expression.

JustJavaScripticon

 

Just JavaScript 
A Radical Look At JavaScript

  1. In The Beginning Was The Object
  2. The Function Object
  3. How Functions Become Methods
  4. The Object Expression

 

Related Articles

Javascript Jems - First class functions

JavaScript Objects With Value - valueOf and toString

JavaScript Hoisting Explained       

WAT! JavaScript, Ignorance And Prejudice       

What Exactly Is A First Class Function - And Why You Should Care     

Lambda Calculus For Programmers       

The Undefined Defined Variable       

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

blog comments powered by Disqus

 

Banner


Just JavaScript - Object Construction

Object creation is fundamental to all object-oriented languages, but in JavaScript is is left to the programmer to work out how best to do it and often the practice that you encounter isn't the best b [ ... ]



Just JavaScript - The Object Expression

As in most programming languages the expression is an important part of JavaScript, but it isn't quite the same. This is where the idea that JavaScript has some weird type conversions arises. But Java [ ... ]


Other Articles

<ASIN:0596805527>

<ASIN:193398869X>

<ASIN:0137054890>

<ASIN:1449381871>

<ASIN:1430230541>



Last Updated ( Friday, 13 June 2014 )
 
 

   
RSS feed of all content
I Programmer - full contents
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.