logo CodeStepByStep logo

fixErrors1

Language/Type: JavaScript basics errors functions
Author: Melissa Hovik (on 2016/09/25)

The following program attempts to print the message "Winter is coming!" to the console. But it contains several kinds of errors. Fix the code below so that it compiles and runs properly.

Function: Write a JavaScript function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.