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

1494 points
5f7e841cec9c0b062f432532731a1121?s=140&d=retro
Submitted by
Mayank Madan
over 4 years ago

why wont these answers work?

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

// 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";

it says 1st answer is wrong


6 votes

permalink

It worked with 'servers'. thanks

1494 points
5f7e841cec9c0b062f432532731a1121?s=140&d=retro
Submitted by
Mayank Madan
over 4 years ago

3 Comments

56dee87e6c20fe07c8000171_964106633 Edvins Antonovs over 4 years ago

thanks had the same problem.

51bd876d7c82ca960d017e3a_107102458 Victor10 almost 4 years ago

Thank you for the answer

52b32a0380ff336dfa002d35_80034811 Manuel Hoffmann over 3 years ago

Thank you for the answer


1 vote

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";

535 points
51bd876d7c82ca960d017e3a_107102458
Submitted by
Victor10
almost 4 years ago


0 votes

permalink

try the single quotes for all of them ex- 'server' or 'servers'

317 points
9ef2b122b981e4813e5368eb58db945a?s=140&d=retro
Submitted by
wildunderrick
over 4 years ago

1 Comment

51bd876d7c82ca960d017e3a_107102458 Victor10 almost 4 years ago

They is "servers" not "server"


0 votes

permalink

I just realized that there was an ending /. Thanks!

1888 points
E609f7322f5bc6855717f4adb908d95d?s=140&d=retro
Submitted by
summitwei
over 3 years ago


-1 votes

permalink

Actually double-quotes is fine but Answer 3 needs to not have any quote. Just the number itself.

1027 points
12feb2f6f35ae4539c3f89562326d633?s=140&d=retro
Submitted by
allen
over 4 years ago