This document provides an overview of a 10 day JavaScript learning challenge. The objective is to review basic JavaScript concepts by completing tasks like printing messages to the console. The first task is to print "Hello, World!" and the value of a string parameter passed to a greeting function.
Download as DOCX, PDF, TXT or read online on Scribd
100%(1)100% found this document useful (1 vote)
184 views
JavaScript Hackerrank
This document provides an overview of a 10 day JavaScript learning challenge. The objective is to review basic JavaScript concepts by completing tasks like printing messages to the console. The first task is to print "Hello, World!" and the value of a string parameter passed to a greeting function.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
JavaScript
Overview: 10 Days of JavaScript
This series focuses on learning and practicing JavaScript. Each challenge comes with a tutorial article, and you can view these articles by clicking either the Topics tab along the top or the article icon in the right-hand menu. Objective In this challenge, we review some basic concepts that will get you started with this series. Check out the tutorial to learn more about JavaScript's lexical structure. Task A greeting function is provided for you in the editor below. It has one parameter, . Perform the following tasks to complete this challenge: 1. Use console.log() to print Hello, World! on a new line in the console, which is also known as stdout or standard output. The code for this portion of the task is already provided in the editor. 2. Use console.log() to print the contents of parameterVariable 3. (i.e., the argument passed to main).
You've got this!
Input Format
Data Type Parameter Description
string parameterVariable A single line of text containing one or more space-separated words. Output Format Print the following two lines of output: 4. On the first line, print Hello, World! (this is provided for you in the editor). 5. On the second line, print the contents of parameterVariable 6. . Sample Input 0
Welcome to 10 Days of JavaScript!
Sample Output 0
Hello, World!Welcome to 10 Days of JavaScript!
Explanation 0 We printed two lines of output: 7. We printed the literal string Hello, World! using the code provided in the editor. 8. The value of passed to our main function in this Sample Case was Welcome to 10 Days of JavaScript!. We then passed our variable to console.log, which printed the contents of .