近期活跃的文档
查看所有活动页面 | 日期 | 评论 |
---|---|---|
Evolution of HTTP |
fix spelling error/tense usage | |
Functions — reusable blocks of code |
Under anonymous function, example given to use named function instead, but used "var" prior to code. Changed to <pre class="brush: js"> function myGreeting() { alert('hello'); }</pre>, instead of "var function myGreeting()..." | |
Getting started with HTML |
HTML example showing incorrect syntax for nesting elements. Added CSS class of "example-bad" to code to create further visual cue to reader that element was not properly nested. | |
HTML basics |
HTML example showing incorrect syntax, thus added CSS class of "example-bad" to code to create further visual cue to reader to not repeat mistake. | |
Making decisions in your code — conditionals |
Added the class of "example-bad" to the code snippet to make it clear that this is a common mistake when using the logical OR operator in conditional statements and to not rely on the code as being valid in JavaScript. |