-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathSolutionHello.js
More file actions
9 lines (6 loc) · 602 Bytes
/
Copy pathSolutionHello.js
File metadata and controls
9 lines (6 loc) · 602 Bytes
1
2
3
4
5
6
7
8
9
/*
The main mode is having a method named main inside a class and should return nothing but should print a line to the standard output with the message Hello World! i.e. print the line Hello World! to the console. For Java the main method should receive String array as parameters that can be specified when running from console with the command. In many traditional programming languages can be only one main for a whole application since it denotes the application entry point.
Solution.main("parameter1","parameter2");
*/
//Answer//
let Solution = { main () { console.log('Hello World!') } }