Submissions will no longer be placed on the leaderboard. You may still attempt this problem for practice.

Here is a rough breakdown of the topics covered in this series:

Day 1: Learn basic Input/Output, print "Hello World!", and get started with conditional logic.

Day 2: Introducing variables, arithmetic operators, switch statements, and objects.

Day 3: Learn more about objects and arrays.

Day 4: Learn some data types and features of ES6.

Day 5: Learn more ES6 features. ES6 is a certain set of enhancements to the original JavaScript keywords.

Day 6: Solve simple problems with algorithms, data structures, and recursion.

Day 7: Generate ASCII Art using JavaScript.


JavaScript is a high level, dynamic, interpreted programming language. Along with HTML and CSS, it's one of the three essential technologies used in Web content production. The majority of websites employ JavaScript, and it's supported by all modern web browsers without plugins.

Here is a sample line of code that can be executed in Javascript:

console.log("Hello World!");

You can also store a string in a variable and print it:

var my_string = "Hello World!";
console.log(my_string);

Try it out! Write a function that prints Hello World! in the console below.

Note: Not sure where to start? Try Solve Me First in Javascript before attempting this challenge.

Line: 1 Col: 1
  1. Challenge Walkthrough
    Let's walk through this sample challenge and explore the features of the code editor.1 of 6
  2. Review the problem statement
    Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
  3. Choose a language
    Select the language you wish to use to solve this challenge.3 of 6
  4. Enter your code
    Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
  5. Test your code
    You can compile your code and test it for errors and accuracy before submitting.5 of 6
  6. Submit to see results
    When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
  1. Check your score