Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Cameron-Riecan

Menjadi anggota sejak
Cameron-Riecan

Aktiviti Dokumen Terkini

Papar semua aktiviti
Halaman Tarikh Komen

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.