What is displayed by the alert dialog box after the following code executes? var name = "Donny,Duck"; var index = name.indexOf(","); var lastName = name.substr(index + 1, name.length - 1);; alert("Last name: " + lastName);

Respuesta :

Answer:

Last name: Duck

Explanation:

explanation is provided in the attached document.

Ver imagen mahamnasir