JavaScript for Optimizers

About Course

What Will You Learn?

  • You will learn how to use code editors. This is important because it will make writing and managing code a lot easier.
  • You will learn how to use browser developer tools. This is important because you need to be able to inspect the backbone of a website before you can start writing code to change it.
  • You will learn how to select elements with JavaScript. This is important because it’s usually the first step in changing something on a page. For example, before you can hide an element you need to select it.
  • You will learn how to manipulate elements on a webpage with JavaScript. This is important because you will be able to apply the changes to a webpage you need for your experiment.
  • You will learn how to run JavaScript code conditionally. This is important because you can use this to activate experiments or make changes on a website when certain rules apply.
  • You will learn how to write regular expressions to target page paths. This is important because you can use this to apply your experiments on the set of pages you need for your experiment.
  • You will learn how to prevent flickering when running JavaScript experiments. This is important because flickering can be a common problem with client-side experiment implementation.
  • You will learn how to run JavaScript in an A/B testing tool. This is important because you need to be able to move your written code into an A/B testing tool in order to run experiments.

Course Content

Code editors
In this chapter, you will learn how to use code editors.

Browser developer tools
In this chapter, you will learn how to use browser developer tools.

Selecting elements
In this chapter, you will learn how to select elements with JavaScript.

Manipulating elements
In the chapter, you will learn how to manipulate elements on a webpage with JavaScript.

Conditional changes
In this chapter, you will learn how to run JavaScript code conditionally.

Regular expressions
In this chapter, you will learn how to write regular expressions to target page paths.

Preventing flickering
In this chapter, you will learn how to prevent flickering when running JavaScript experiments.

Running experiments
In this chapter, you will learn how to run JavaScript in an A/B testing tool.