Why Do I Get The Is Not A Function Error When Using Code Example From

Why Do I Get The Is Not A Function Error When Using Code Example From