workshopper / org

Organizing the workshopper environment.
9 stars 4 forks source link

javascripting (Exercise 16 of 19) Content issue. #21

Closed maRanaylaK closed 7 years ago

maRanaylaK commented 7 years ago

//Command prompt displayed content.


JAVASCRIPTING

OBJECT PROPERTIES (Exercise 16 of 19)

You can access and manipulate object properties -- the keys and values that an object contains -- using a method very similar to arrays.

Here's an example using square brackets:

var example = {
  pizza: 'yummy'
};

console.log(example['pizza']);

The above code will print the string 'yummy' to the terminal.

Alternately, you can use dot notation to get identical results:

example.pizza;

example['pizza'];

The two lines of code above will both return yummy.

The challenge:

Create a file named object-properties.js.

In that file, define a variable named food like this:

var food = {
  types: 'only pizza'
};

Use console.log() to print the types property of the food object to the terminal.

Check to see if your program is correct by running this command:

javascripting verify object-properties.js

//Content end issue follows.

In the example given while declaring the variable ""example"" the key value ""pizza"" which is to be a string "IS NOT QUOTED". The same thing happend in the challenge where ""types"" is "NOT QUOTED" so please change the content description.

THANK YOU for this great workshop I was confused on where to start JS but this gave me a good start.

maRanaylaK commented 7 years ago

OOPS! Maybe this isn't the right place. I am sorry any inconvenience I have created by posting this here as I have realized the issue I have put up does not match with any other ones. Will try to find another way to convey this issue.