JavaScript - Basic

Print the objectives

Take the exam   Take a beta test

JavaScript is the scripting language of the web. It is used in millions of pages to provide dynamic effects, client side functionalities like validation, cookie management, browser detection and server calls through Ajax. With the new version it has also added inline support for Java (provided its installed on the client machine).
  Released  Beta  Frozen  

Concept  1 question

  • Understand that JavaScript is interpreted
  • Describe the (non)relationship/differences between JavaScript and Java
12 45 28

Code  2 questions

  • 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
12 23 24

Variables  3 questions

  • 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
20 9 18

Operators  3 questions

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
17 39 32

Execution flow  4 questions

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
8 2 27

Built-in objects  2 questions

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()
11 62 17

Built-in functions  3 questions

Identify / use built-in Functions
  • decodeURI()
  • decodeURIComponent()
  • encodeURI()
  • encodeURIComponent()
  • escape()
  • eval()
  • isFinite()
  • isNaN()
  • Number()
  • parseFloat()
  • parseInt()
  • String()
  • unescape()
22 23 8

HTML events  2 questions

  • Handle and react to HTML Events
  • Bubble and suppress events
8 14 22

Exam information

  • 30 minutes
  • 20 questions (503)
  • 80% required
  • +3 √
  • - 10  points
  • 15 day delay
  • status: released