CIW Exam Questions

What needs to be changed to allow this script to run without error?

Consider the following code:

What needs to be changed to allow this script to run without error?

A.
Change the substring method call to substr

B.
Change the substring method call to substr()

C.
Change the characterAt method call to charAt

D.
Change the characterAt method call to characterat

Explanation: