HackerRank 30 Days of Code Solution Day 0: Hello, World.

Featured image

We are going to solve HackerRank’s “30 Days of Code” programming problem on day 0 hello world HackerRank solution in C++, Python and JavaScript language with complete code.

Disclaimer: We encourage you to solve this challenge yourself before reading our tutorial. We have provided a detailed explanation of the problem and our solutions to help you check your work.

Hackerrank 30 days of code

It’s part of hackerrank’s 30 days of code. A series of 30-day programming challenges. Where you can learn new programming languages by solving the coding challenges.


To complete this challenge, you must save a line of input from stdin to a variable, and print Hello, World. on a single line, and finally print the value of your variable on a second line.


On the first line, we print the string literal Hello, World. On the second line, we print the contents of the variable which, for this sample case, happens to be Welcome to 30 Days of Code! If you do not print the variable’s contents to stdout, you will not pass the hidden test case.

Hello World HackerRank Solution in Python

Hello World HackerRank Solution in C++

Hello World HackerRank Solution in JavaScript

Test Case of Data Type HackerRank Solution

Solution to 30 days of code Day 1 Data Types