Day 1: HelloWorld!
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.
xxxxxxxxxx
function processData(input) {
//Enter your code here
}
process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
process.stdin.on("data", function (input) {
_input += input;
});
process.stdin.on("end", function () {
processData(_input);
});