JavaScript - Basic

Concept
  • Understand that JavaScript is interpreted
  • Describe the (non)relationship/differences between JavaScript and Java
Code
  • Use the different ways of embedding JavaScript in web pages - the script tag in head, body, inline JavaScript
  • Understand how to break a code line within a text string using "\" and how it is inappropriate for non string code
  • Comment JavaScript code out, using all the existing ways
Variables
  • Name valid variables following the JavaScript rules - _, $, a..z A..Z followed by any number,alphabet,_,$
  • Respect the JavaScript variables case-sensitivity rule.
  • Identify that JavaScript variables are not strongly typed
  • Understand the significance of creating variables with and without 'var'
  • Identify variable scopes
Operators

Use the following operators and describe their limitations.

  • Arithmetic Operators (+, -, *, /, %, --, ++)
  • Assignment Operators (=, +=, /=, -=, *=, %=)
  • Comparison Operators (==, ===, !=, >, <, <=, >=, !==)
  • Logical Operators (!, &&, ||)
  • String Operators (+)
  • Conditional Operator (?:)

Write code using the following elements:

  • Special characters (\',\",\&,\n,\t,\r,\b,\f')
  • prototype
  • typeof
  • null
  • new
  • eval
  • with
  • void
  • NaN
  • undefined
Execution flow Predict the execution flow of code using the following constructs:
  • if .. else
  • switch case default
  • for loop
  • while loop
  • for .. in
  • with statement
  • break & continue
  • try .. catch
  • throw
Built-in objects Use and create built-in objects (including using new and using eval).
  • Strings
  • Date
  • Array - Initialization
  • Boolean
  • Math
  • DOM Objects
Just introduction to the document objects - document, window with only these functions - open(),write(),setTimeout()/clearTimeout() Built-in functions Identify / use built-in Functions
  • decodeURI()
  • decodeURIComponent()
  • encodeURI()
  • encodeURIComponent()
  • escape()
  • eval()
  • isFinite()
  • isNaN()
  • Number()
  • parseFloat()
  • parseInt()
  • String()
  • unescape()
HTML events
  • Handle and react to HTML Events
  • Bubble and suppress events

你可能感兴趣的:(JavaScript,html,Web,F#,prototype)