This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with JavaScript Forum

View Course » View Exercise

63 points
51093e2d30f9208cbe000891_672369155
Submitted by
Sebastian
over 4 years ago

Struggling with Question 4.4?

Can someone aid me in achieving the correct answer, I'm completely stuck!


2 votes

permalink

var answer = 'JSON';

456 points
5132a174b7556c9224000809_967777011
Submitted by
๐oOtakuo๐
over 4 years ago

3 Comments

24ee3cf1685e0a054c2460eee2634ddd?s=140&d=retro Ajasegun Lawson over 4 years ago

THANKS IT WORK

51becf639c4e9d9fa0028ab7_239234870 Ashraf Uddin about 4 years ago

How though??

14e0a20ef90d2c0eeefe2f7a5a0a8dbf?s=140&d=retro CodeBuster1624 over 3 years ago

THANK'S'S'S'S'S'S'S'S'S'S'S'S'S'S


0 votes

permalink

var answer = JSON; {"Cartoon Foxes":{{ "Name": "Fox Tall", "Job": "Bein' tall"}, {"Name": "Fox Small", "Job": "Bein' small"}}};
var json = JSON.parse(answer);
console.log(json);
getting 3 weird missing ";" before statement
and expected '}' to match '{' from line 17 and instead saw ':'
also expected '(end)' and instead saw '{'
weird right, so weird. syntax errors are the worst O.o

158 points
Picture
Submitted by
Mike Hunts Harry
almost 4 years ago


-4 votes

permalink

// 1. HTTP is a protocol that connects clients and ______.
var answer1 = "servers";

// 2. The four HTTP methods are GET, POST, ___, and DELETE.
var answer2 = "put";

// 3. A ___ error means the server goofed up. (200, 300, 400, or 500)
var answer3 = 500;

787 points
Picture
Submitted by
Ivan Yudhi
over 4 years ago

1 Comment

Picture Mike Hunts Harry almost 4 years ago

3rd one can be 200-500. no?