From 96f2467189d181e4969d10bb1eb44fbb1c4b90e8 Mon Sep 17 00:00:00 2001 From: Oumaima Fisaoui <48260689+Oumaimafisaoui@users.noreply.github.com> Date: Mon, 12 Aug 2024 19:21:27 +0000 Subject: [PATCH] Docs(DPxAI): fix issues with formatting and change --- subjects/DPxAI/objects-around/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subjects/DPxAI/objects-around/README.md b/subjects/DPxAI/objects-around/README.md index d430b0a74..39142141e 100644 --- a/subjects/DPxAI/objects-around/README.md +++ b/subjects/DPxAI/objects-around/README.md @@ -62,7 +62,7 @@ let robot = { }; ``` -Each property is separated by a comma ,. It's good practice to add a trailing comma to every property, though it's not required for the last one. +Each property is separated by a comma ",". It's good practice to add a trailing comma to every property, though it's not required for the last one. ### Accessing Values @@ -95,17 +95,17 @@ console.log(adjustedWeight); // Logs the adjusted weight #### **`Prompt Example`**: -- Can you help me visualize a JavaScript object with the following properties: name, type, weight, isOperational, location, and features? +- Can you help me visualize a JavaScript object with the following properties: `name`, `age`, `hasEnergy``? ### Instructions #### Task 1: -Let's declare a variable `myRobot` which has an object as its value with 3 properties: +Let's declare a variable `myRobot` which has an object as its value with 3 properties. -1. A `name` property of ``myRobot``'s name as a String -2. An `age` property of ``myRobot``'s age as a Number -3. A `hasEnergy` property as a Boolean indicating if ``myRobot`` has dangerous features +1. A `name` property of `myRobot`'s name as a String +2. An `age` property of `myRobot`'s age as a Number +3. A `hasEnergy` property as a Boolean indicating if `myRobot` has dangerous features #### Task 2: