complexity: 1 ; importance: 3; author: docentmail


Access object's property

Problem 2015-12-18-15-36

Question: Give two variants how to access "name" property of given cat object.

var cat = {name:"Peter", hi:function() {alert("Hello my friend");}}