Uploaded January 2016 | Updated September 2026, 2 weeks ago
Take a sneak peak into our new Phonegap 2016 course all developed to help you build hybrid app's!
Course:
cartoonsmart.com/phonegap-hybrid-app-development-tutorials
Take a sneak peak into our new Phonegap 2016 course all developed to help you build hybrid app's!
Course:
cartoonsmart.com/phonegap-hybrid-app-development-tutorials










![Computer Programming for Beginners | Objects & Arrays | Ep25
Objects are literal, when you look around you can see objects and identify them; theyre obvious for what they are. They contain key and value pairs, the keys could either be a noun or verb. For example a property consisting of a key and value pair would be...
{
color : red
}
...The key or noun is color and the adjective or value is red. This is called a property, properties help describe and define your object. However you can also provide verbs to perform on that object. The key is the verb and the value is a function, to complete the verb. For an example of a method or verb which consists of a key and value pair would be...
{
drive : function( ){ ... }
}
... The key drive is now a verb and to perform that action on the object we need the function to complete the verb. So the key is the verb and the value is the action behind the verb.
Identifying objects is also very important to programmers. To identify whether something should be an object in your program ask yourself, can it be owned? Just by asking if something can be owned will identify if it is in fact an object. This may seem obvious for example we make a program that catalogs furniture, we can easily see furniture can be owned. But sometimes the object is virtual, for example a bank account. Bank accounts can be owned however you cant physically touch the account however bank accounts can be owned.
Also consider objects can be exactly the same but in their own right they are unique. So for example take two iPads, exactly the same make and model. They physically are the same when they come off the production line; but they can go to two different owners. They can store different user data and apps; so in their own right they maybe physically the same but they are in fact unique.
Also you have arrays, arrays are objects but theyre a different type of object. For example arrays are registers. They register data that you can iterate through. So when I count five one pound coins one by one Im iterating over those pound coins. Likewise we may want to count or analyse data one by one. For example names on a register, well this is not a single object or person it is a register of all names with each name having an index so we can count through them like so...
[
0 : Lawrence,
1: Jeff,
2: John,
3: Stephanie,
]
These are all names, one name has nothing to do with another, and nothing specifically to do with one specific object or person. But however the data can be collated together, because were working with the same type of data. In this case peoples names. With each name having an index number from zero upwards we can see how arrays would be useful.
In summary...
1. objects have key and value pairs and so do arrays.
2. Keys in a standard object can be a noun or verb.
3. A key noun coupled with the adjective value is a property to describe the object.
4. A key verb and a function value is called a method to perform an action on that object.
Arrays are objects however they contain key and value pairs for iteration. The keys are numbers starting from zero to give each piece of data an index so we can iterate or find it within our register. Each value is called an element when placed inside of an array.
Programming 101 course:
https://www.youtube.com/playlist?list=PLGC-hHIh7l5s6Spz86OT1u0A7kvQH-2B0
This tutorial is brought to you by http://www.avelx.co.uk/ - Coding tutorials to help you grow. Computer Programming for Beginners | Objects & Arrays | Ep25](https://i.ytimg.com/vi/GoeHsVwUAtE/mqdefault.jpg)