-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathChristmas Tree!.js
48 lines (39 loc) · 3.15 KB
/
Christmas Tree!.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
We are living in communism and everyone has got christmas tree(same kind) from goverment!
Task:
-Decorate christmas tree!
Restrictions:
-You can only edit existing characters(spaces).
-You cant edit initial dots!they cant even change position.
-Dont use characters such as "" , "`" or "."
-Zoom out to see whole christmas tree in console (press ctrl and "-")
Lets choose best christmas tree this year!
*/
function decorateTree(){
var tree = `
.
. .
. * * .
. .
. .
......................
. .
. .
. * * * * * .
. .
. .
.....................................
. .
. .
. .
. * * * * * * * * * .
. .
. .
.........................................................
......
......
......
`;
console.log(tree);
return tree;
}