Test Yourself: ES6 Tips and Best Practices

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.

Basic Syntax: This

  • What does this represent?
  • What is the effect of using call or apply over the this keyword?
  • What is the difference between call and apply?
  • How do ES6 arrow functions influence this?

Running JavaScript From Files

  • How can you see the output of your code in code editors like Atom or Sublime Text?
  • How could you quickly run a piece of JavaScript in the browser without typing in the console?

Constructing Objects

  • What are the three main ways to build objects in JavaScript?
  • What is a constructor function?
  • What is the effect of calling new to a constructor function?
  • What's the difference between anonymous objects and named object instances?
  • How can we set values of properties in constructor functions?
  • What does Object.create do?

ES6 Classes

  • What's the difference between a class and a constructor function?
  • How do we inherit from one class in JavaScript?

JavaScript Style Guide

  • What is considered a good practice when it comes to variable naming in JavaScript?
  • What is considered a good practice when it comes to declaring constants in JavaScript?
  • Are you required to use semicolons in JavaScript?
  • What is considered a good practice when it comes to accessing a property on an object in JavaScript?
  • What is considered a good practice when it comes to comparing values in JavaScript?
  • Where is it advised to use the this keyword?
  • What package can you use to format your code?
  • What is considered a good practice when it comes to method chaining in JavaScript?


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: Introduction to jQuery Basics