Test Yourself: JavaScript Basics

How well did you learn what's been taught in the previous lessons?

Scroll down...

Content

Resources

Comments

Some things you should know before moving on.

An Introduction to JavaScript

  • How do you include JavaScript in your project?
  • Why might you put your JavaScript includes at the bottom of the <body> tag?
  • What is “JS Bin“?
  • Where is the official JavaScript documentation located?

Basic Syntax: Types

  • Are semicolons required?
  • Are curly braces required?
  • Are parentheses required for function invocation?
  • What's the difference between using var myVar = "foo"; and myVar = "foo";?
  • What's the difference between JS's undefined and null?
  • Is undefined falsy?
  • How do you make an alert box pop up?
  • How do you write to the console?
  • What can you put as keys in an Object in JavaScript?
  • What can you put as values?
  • What are two ways to get or set values to or from an object?
  • In an object, is there a difference between using a plain text identifier like myProperty versus a string like "myProperty"?
  • How can you add or remove items to the front of an array?
  • How can you add or remove items to the back of an array?
  • How do you “cast” a String as a Number?
  • How do you test the type of an object?
  • What is the type of an Array?
  • What's the difference between passing a function and invoking it?
  • What are logical operators?
  • What are comparison operators?

Basic Syntax: Looping

  • What's the shortcut for incrementing an iterator like i?
  • How do you stop the iteration?
  • How do you jump to the next iteration?

Basic Syntax: Control Flow

  • How do Ternary conditionals work in JavaScript?
  • How do you invoke a function that's tucked inside of an object?
  • What objects are falsy in JavaScript?

Basic Syntax: Arrays

  • What are 2 ways to create an array?
  • What is returned if you try to access an array index where nothing is stored?
  • How do you combine arrays?
  • How do you turn an array into a string?
  • How do you sort an array?
  • How do you compare two arrays?
  • What does the splice method do?
  • How is forEach different from for?
  • What does map do?
  • What does filter do?
  • What does reduce do?

Basic Syntax: Objects

  • How do you define an object?
  • What are two ways of accessing an object property?
  • How do you add a new method to an object?
  • What is going to be the value of this when called from an inside object method?


Sign up to track your progress for free

There are ( ) additional resources for this lesson. Check them out!

There are no additional resources for this lesson just yet!

Sorry, comments aren't active just yet!

Next Lesson: Practice with JavaScript