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

185 points
Picture
Submitted by
waxer12
about 3 years ago

what is wrong

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


4 votes

permalink

I have written

1: SERVERS
2: PUT

  1. 500

1398 points
9e03051230d15e806728478491797aba?s=140&d=retro
Submitted by
Samuel Sutanto
almost 3 years ago


2 votes

permalink

Hy,
var answer2 = "PUT"; - use capital letter because of JS is case sensitive; I guess also it's a reserved tolken.
var answer3= 500; don't use quotes for integers, unless you want to make it a string for a good reason.

267 points
55a4a91576b8fe102b0000fc_11176856
Submitted by
jasmin jasmin
about 3 years ago


0 votes

permalink

var answer1="Servers"

224 points
5327d0367c82caac1300196a_961374642
Submitted by
CherryAye
about 3 years ago