Skip to main content
  • PRDV401: Introduction to JavaScript I
    0%

Focus Mode is ON. Click ‘X’ at right bottom to close it.

  • Previous
  • JavaScript Reserved Keywords
    Course Introduction
    Course Syllabus
    Unit 1: HTML and CSS Prerequisite Overview
    1.1: Introduction to HTML
    HTML Basics
    Practice: HTML Text Fundamentals
    Working with Files: Folder Structure and Naming Conventions
    Example in Action: Working with Basic HTML
    Practice Review: Creating a Simple Webpage
    1.2: Introduction to CSS
    What is CSS?
    Getting Started with CSS Rules
    Example in Action: Working with Inline CSS
    Practice: Develop a Webpage Using HTML and CSS
    Study Session Review Video
    PRDV401 Study Session 1
    Unit 1 Assessment
    Unit 1 Assessment
    Unit 2: Introduction to JavaScript
    2.1: JavaScript Overview
    A Brief History of JavaScript
    What is JavaScript?
    Why JavaScript?
    2.2: Getting Started
    2.3: Adding JavaScript to a Webpage
    JavaScript and HTML
    Using the <script> Element to Link External Files
    Example in Action: Incorporating Javascript in a Webpage
    Practice: Run "Hello World"
    2.4: Debugging JavaScript
    What is Debugging?
    Validating JavaScript
    Example in Action: Install and Use JSHint in the Sublime Text
    Study Session Review Video
    PRDV401 Study Session 2
    Unit 2 Assessment
    Unit 2 Assessment
    Unit 3: Values, Variables, and Statements
    3.1: Data Types and Values
    Introduction to DataTypes and Values
    Example in Action: JavaScript Data Types
    Practice: Immutable vs. Mutable in JavaScript
    3.2: Variables and Strings
    What is a Variable?
    Identifier and Variable Names
    Example In Action: String Variables
    3.3: JavaScript Operators
    Expressions and Operators Reference
    More on JavaScript Operators
    Assignment vs. Equality Operator
    Expressions and Operators Reference (3.3)
    Try It (3.3)
    3.4: Introduction to JavaScript Statements
    What is a Statement?
    JavaScript Reserved Keywords
    Block Statements
    JavaScript Statement Syntax
    Practice: Data Types and Arithmetic Operators
    Practice Review: Using "var", "let", and "const" Statements
    Keywords (3.4)
    Try It (3.4)
    Study Session Review Video
    PRDV401 Study Session 3
    Unit 3 Assessments
    Unit 3 Assessment
    Unit 4: Conditional Statements and Control Flow
    4.1: Introduction to Conditional Statements
    What is Control Flow?
    4.2: Selection Control Statements
    "if...else" Statements
    Example in Action: "switch" Statement with a "break"
    4.3: Looping Statements
    "while" Statements
    Example in Action: "for" Statement
    "do...while" Statement
    Practice Review: Fix the Switch Statement
    Study Session Review Video
    PRDV401 Study Session 4
    Unit 4 Assessment
    Unit 4 Assessment
    Unit 5: The Basics of Functions
    5.1: Functions to Perform a Task in Action
    Introduction to Functions
    JavaScript Functions
    5.2: Declaring Functions
    Function Declaration Notation
    5.3: Additional Function Declarations
    Function Expression Notation
    The Arrow Function
    Example in Action: JavaScript Functions Expression and Arguments
    Practice Review: Using Functions with Conditionals
    Study Session Review Video
    PRDV401 Study Session 5
    Unit 5 Assessment
    Unit 5 Assessment
    Unit 6: Objects, the DOM, and Best Practices
    6.1: JavaScript Objects
    Data Structures: Arrays and Objects
    Example in Action: Storing and Accessing Objects with JavaScript
    Practice: Exploring Objects Using JavaScript
    6.2: The DOM (Document Object Model)
    Introduction to the DOM
    The DOM and JavaScript
    Practice: Inspecting DOM "Elements" using the Developer Console
    Practice: Using JavaScript and the DOM to Output Data to a Webpage
    6.3: JavaScript Best Practices
    JavaScript Best Practices
    Common Mistakes in Your Code
    Using Strict Mode
    Example in Action: Exception Handling
    6.4: Final Practice Exercises
    Course Review
    Project: Guess The Number Game
    Study Session Review Video
    PRDV401 Study Session 6
    Unit 6 Assessment
    Unit 6 Assessment
    Course Feedback Survey
    Course Feedback Survey
    Certificate Final Exam
    PRDV401: Certificate Final Exam
    Raw Files
    .js Files
  • Next
  • Course Catalog
    • All categories
    Arts & Humanities
    • Art History
    • Communication
    • English
    • Philosophy
    • Business Administration
    • Computer Science
    • English as a Second Language
    Professional Development
    • Business and Communication
    • College Success
    • Computer and Information Technology
    • General Knowledge for Teachers
    • Writing and Soft Skills
    Science and Math
    • Biology
    • Chemistry
    • Mathematics
    • Physics
    Social Science
    • Economics
    • Geography
    • History
    • Political Science
    • Psychology
    • Sociology
  • Home
  • Specialization Programs
    Specialization Programs
  • Help
    Getting Started Help Center & FAQ
Close
Toggle search input
You are currently using guest access
Log in
Course Catalog Collapse Expand
  • All categories
Arts & Humanities
  • Art History
  • Communication
  • English
  • Philosophy
  • Business Administration
  • Computer Science
  • English as a Second Language
Professional Development
  • Business and Communication
  • College Success
  • Computer and Information Technology
  • General Knowledge for Teachers
  • Writing and Soft Skills
Science and Math
  • Biology
  • Chemistry
  • Mathematics
  • Physics
Social Science
  • Economics
  • Geography
  • History
  • Political Science
  • Psychology
  • Sociology
Home Specialization Programs Collapse Expand
Specialization Programs
Help Collapse Expand
Getting Started Help Center & FAQ
Expand all Collapse all
Skip Table of contents

Table of contents

  • Reserved keywords as of ECMAScript 2015
  • Future reserved keywords
  • Reserved word usage
  • Identifiers with special meanings
  1. PRDV401: Introduction to JavaScript I
  2. Unit 3: Values, Variables, and Statements
  3. 3.4: Introduction to JavaScript Statements
  4. JavaScript Reserved Keywords

JavaScript Reserved Keywords

  • Book
  • Print book
  • Print this chapter
Completion requirements

JavaScript statements begin with a "reserved keyword" and perform a specific task. For example, the "var" keyword instructs the browser to create a variable. This article provides a list of the keywords used in JavaScript. It is important to remember that a "variable" or "function" cannot use keywords. This is another interactive reference to use as you learn to write JavaScript statements.

Reserved keywords as of ECMAScript 2015

Please select a keyword to learn about the syntax and run an example.


  • break
  • case
  • catch
  • class
  • const
  • continue
  • debugger
  • default
  • delete
  • do
  • else
  • export
  • extends
  • finally
  • for
  • function
  • if
  • import
  • in
  • instanceof
  • new
  • return
  • super
  • switch
  • this
  • throw
  • try
  • typeof
  • var
  • void
  • while
  • with
  • yield



Source: Mozilla, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#keywords
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.

Contact site support
You are currently using guest access (Log in)
Policies
Get the mobile app
Powered by Moodle


© Saylor Academy 2010-2024 except as otherwise noted. Excluding course final exams, content authored by Saylor Academy is available under a Creative Commons Attribution 3.0 Unported license. Third-party materials are the copyright of their respective owners and shared under various licenses. See detailed licensing information. Saylor Academy®, Saylor.org®, and Harnessing Technology to Make Education Free® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.








Privacy Policy Terms & Conditions

Saylor Academy © 2010-2025 except as otherwise noted. Excluding course final exams, content authored by Saylor Academy is available under a Creative Commons Attribution 3.0 Unported license. Third-party materials are the copyright of their respective owners and shared under various licenses. See detailed licensing information. Saylor Academy®, Saylor.org®, and Harnessing Technology to Make Education Free® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.