Day 7: Generate a Wavy Pattern using JavaScript
Submissions will no longer be placed on the leaderboard. You may still attempt this problem for practice.
Write a JavaScript program to generate the pattern below, composed of the following characters: ╱ and ╲.
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
╱╲╱╲╱╲╱╲╱╲╱╲╱╲
Input Format
No input is required to complete this challenge.
xxxxxxxxxx
15
1
function processData(input) {
2
//Enter your code here
3
}
4
5
process.stdin.resume();
6
process.stdin.setEncoding("ascii");
7
_input = "";
8
process.stdin.on("data", function (input) {
9
_input += input;
10
});
11
12
process.stdin.on("end", function () {
13
processData(_input);
14
});
15