// Define a JavaScript object jsObject := ` var person = { name: "John Smith", age: 30, address: { street: "123 Main St", city: "Anytown", state: "CA", zip: "12345" } }; ` // Create an Otto VM and execute the JavaScript vm := otto.New() vm.Run(jsObject) // Get the person's name name, _ := vm.Object("person").Get("name") fmt.Println(name) // Output: John Smith // Get the person's age age, _ := vm.Object("person").Get("age") fmt.Println(age) // Output: 30 // Get the person's city city, _ := vm.Object("person.address").Get("city") fmt.Println(city) // Output: AnytownIn the above example, we define a JavaScript object `person` with various properties. We then use the `Object.Get` function to retrieve the value of different properties of the object. The `vm.Object()` method is used to obtain a reference to the `person` object, while the `Get()` method is used to retrieve specific property values.