From b95654e84e2efba336e58d4260c592a501385bbf Mon Sep 17 00:00:00 2001 From: Rupesh Date: Tue, 29 Nov 2016 20:58:26 +0530 Subject: [PATCH] Update Object.md --- JavaScript/Part1/Object.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JavaScript/Part1/Object.md b/JavaScript/Part1/Object.md index c169d0f..84fa574 100644 --- a/JavaScript/Part1/Object.md +++ b/JavaScript/Part1/Object.md @@ -3,7 +3,7 @@ >An object in JavaScript is a collection of key-value pairs. Each key-value pair is called as a property. >A property can be a function, an array, an object itself or any primitive data type i.e. integer, string, etc. ->Functions in the object are called as methods. +>Functions are also objects in JavaScript. Functions in the object are called as methods. >Consider a simple object: @@ -46,7 +46,7 @@ human.getAge = function(){ } ``` ->Now console human and we will find new properties age and getAge() added to human object as shown below: +>Now, console.log human and we will find new properties age and getAge() added to human object as shown below: ```javascript Console.log(human); ``` @@ -61,7 +61,7 @@ human["firstName"]; //Output: Virat human["fullName"](); //Output: Virat Kohli ``` -> New properties can be added using the Square bracket notation as shown below: +> New properties can be added to the object using the Square bracket notation as shown below: ```javascript human["weight"] = 65