Practice makes perfect syntax error


#1



https://www.codecademy.com/en/courses/javascript-beginner-en-9Sgpi/2/4?curriculum_id=506324b3a7dffd00020bf661#


SyntaxError: missing : after property id --- I believe I have all my colons in place.


var Object1 = {
name:"Shana",
type:"Lead singer",
interests:"performing"
};

var Object2 = {
    name:"Grace",
    type:"student",
    interests: "beer", "parties", "sorority"
};

var Object3 = {
    name:"Professor",
    type:"tenured",
    interests:"napping", "pontificating"
};


#2

@lodum,
Change the associated Value of your interests property-key
into an Array.

An object has one or more properties, separated by a comma-,

A property has a property-key and it's associated VALUE

The associated VALUE can be anything from:

•Number
•String
•Boolean
•Symbol
•Object  ◦Function/'Method'
         â—¦Array
         â—¦Date
         â—¦RegExp
         â—¦Math
•Null
•Undefined

#3

Here are my corrections below. Getting a message: Oops, try again. Did you make an object called object1? I did, but obviously something is wrong.

Current code:

var Object1 = {
name:'Shana',
type:'singer',
interests:'performing'
};

var Object2 = {
name:'Grace',
type:'student',
interests:['beer', 'parties', 'sorority']
};

var Object3 = {
name:'Professor',
type:'tenured',
interests:['napping', 'pontificating']
};


#4

@lodum
Look at the Oops-message
Oops, try again. Did you make an object called object1?
and then

have a close look at

Object1

and keep in mind VARIABLE names should start with =lowercase= character

#5

ah-HA!! That's it! Evidently I don't pay strict enough attention to the nomenclature. Thank you for your help.


#6

I think part of my appearing to not pay attention is that I am not yet sure when I would want to use these various techniques; so the nuances elude me. I don't fully understand what problem I am solving and why I would choose which technique as the solution. Am I making sense to you?


#8

Thank you, this will require several readings. I am not yet accustomed to the vocabulary and nomenclature -- this explanation will help.