Basic JavaScript - Delete Properties from a JavaScript Object

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
// Setup
const myDog = {
"name": "Happy Coder",
"legs": 4,
"tails": 1,
"friends": ["freeCodeCamp Campers"],
"bark": "woof"

// Only change code below this line
delete myDog.tails;

The console gives me this message even before I type anything in the editor:
“Uncaught SyntaxError: Unexpected token”

I can reset the code and it makes no difference.

  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 4.2.2; JP5s Inmate Media Device Build/JP5JDQ48) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36 OPR/50.6.2426.201126

Challenge: Basic JavaScript - Delete Properties from a JavaScript Object

Link to the challenge:

The code posted above passes for me. Are you sure there isn’t anything else in the editor that isn’t showing above?

P.S. I’m not sure what browser you are using but it appears to be on a mobile device? The delete operator has been around for a long time so I would think that the browser you are using wouldn’t matter. But there could be something else going on with your browser that is causing this error. So my first suggestion would be to try a different browser. And preferably one that is very up to date.

Thanks bbsmooth, that was my fear. An old android and an old browser. Well, I guess I need more $$$ for a new tablet.
I do have a hard time understanding why the curriculum let me go 80 something exercizes in before things stopped working.
Again, thanks.

@bbsmooth I bet it’s const. Not supported until after Android 4.4 (looks like @thecoderguy 's on 4.2) Oof, that’s old…

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.