Important Notice:

Practice-It will be discontinued as of November 1st, 2024. After this date, the website will remain online for a transitional period, but login will be restricted to University of Washington NetID authentication. This marks the next phase towards the platform's full retirement. Thank you for your use and support of the application over the years.

If you are looking for an alternative, a similar tool, CodeStepByStep, was developed independently by the original author of Practice-It, and is available at codestepbystep.com**

logo Practice-It logo

veryBestSong

Language/Type: JavaScript methods console output
Author: Melissa Medsker-Galloway (on 2016/11/18)

Write a function named veryBestSong prints the following song to the console. Use helper functions to show structure and eliminate redundancy in your solution.

I wanna be,
the very best,
That no programmer ever was...
Every function along the way
With courage I will face...
JSLint, oh, you're my best friend
In a World Wide Web we must defend...

Variable scope errors! Gotta try-catch 'em all!
Those missing semi-colons won't stand a chance,
I'll win every function call...
Always debugging my JavaScript code,
I know it's my destiny...

Bug by bug we'll win the fight
But we'll leave be the Caterpie...
Use alerts when the time is right,
There's no better bug remedy...
JSLint, oh, you're my best friend
In a World Wide Web we must defend...

Variable scope errors! Gotta try-catch 'em all!
Those missing semi-colons won't stand a chance,
I'll win every function call...
Always debugging my JavaScript code,
I know it's my destiny...

I wanna be,
the very best,
That no programmer ever was...
Every function along the way
With courage I will face...
JSLint, oh, you're my best friend
In a World Wide Web we must defend...
        
Type your solution here:


This is a function problem. Write a JavaScript function as described. Do not write a complete program; just the function(s) above.

You must log in before you can solve this problem.


Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.