From 94256f846926e3cbb7a7adf291cb2a042e7d6369 Mon Sep 17 00:00:00 2001 From: Markus Amalthea Magnuson Date: Tue, 5 Mar 2013 15:42:40 +0100 Subject: [PATCH] Correct list of reserved words in JavaScript. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All of these are only considered reserved when in strict mode, but it is in any case a more correct list than the current one. See https://github.com/jquery/learn.jquery.com/pull/295 for further discussion on how to present this list. --- page/javascript-101/reserved-words.md | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/page/javascript-101/reserved-words.md b/page/javascript-101/reserved-words.md index ec3b24ca..38a22e4f 100644 --- a/page/javascript-101/reserved-words.md +++ b/page/javascript-101/reserved-words.md @@ -2,18 +2,14 @@ title: Reserved Words level: beginner source: http://jqfundamentals.com/legacy -attribution: +attribution: - jQuery Fundamentals --- -JavaScript has a number of “reserved words,” or words that have special meaning in the language. You should avoid using these words in your code except when using them with their intended meaning. +JavaScript has a number of "reserved words," or words that have special meaning in the language. You should avoid using these words in your code except when using them with their intended meaning. -- abstract -- boolean - break -- byte - case - catch -- char - class - const - continue @@ -21,45 +17,38 @@ JavaScript has a number of “reserved words,” or words that have special mean - default - delete - do -- double - else - enum - export - extends -- final +- false - finally -- float - for - function -- goto - if - implements - import - in - instanceof -- int - interface -- long -- native +- let - new +- null - package - private - protected - public - return -- short - static - super - switch -- synchronized - this - throw -- throws -- transient +- true - try - typeof - var - void -- volatile - while - with +- yield