Home  >  Article  >  Web Front-end  >  Day Hello, World!

Day Hello, World!

王林
王林Original
2024-07-17 12:46:19976browse

Day Hello, World!

Statement

A greeting function is provided for you in the editor below. It has one parameter, parameterVariable. Perform the following tasks to complete this challenge:

Task

  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 (i.e., the argument passed to main).

Constraint

Input Format

Data Type Parameter Description
string
Data Type Parameter Description
string parameterVariable A single line of text containing one or more space-separated words.
parameterVariable

A single line of text containing one or more space-separated words.

Output Format

  1. Print the following two lines of output:
  2. On the first line, print Hello, World! (this is provided for you in the editor). print the contents of
  3. parameterVariable

on the second line.

Sample

Input
Welcome to 10 Days of JavaScript!


Output
Hello, World!
Welcome to 10 Days of JavaScript!

Explanation
  1. We printed two lines of output:
  2. We printed the literal string Hello, World! using the code provided in the editor. The value of parameterVariable 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
  3. parameterVariable

.

Solution
Hello World!

The above is the detailed content of Day Hello, World!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn