Just JavaScript - In The Beginning Was The Object
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

Contents

  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 - Life Without Type - Duck Testing And Prototype Construction

Attempts to impose type on JavaScript just don't seem to work unless you turn JavaScript into a completely different language. We have already embarked on a consideration of how to live without t [ ... ]



Just JavaScript - Life Without Type - Constructor And InstanceOf

JavaScript is a subtle and sophisticated language that deserves to be treated in its own right and not as a poor copy of other object-oriented languages. In the first of two explorations of how to liv [ ... ]


Other Articles

<ASIN:0596805527>

<ASIN:193398869X>

<ASIN:0137054890>

<ASIN:1449381871>

<ASIN:1430230541>



Last Updated ( Sunday, 10 May 2015 )
 
 

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