Code Editor

AخA
 
1
                        function findSequence(goal) {
2
                          function find( start, history ) {
3
                            if (start === goal) {
4
                              return history;
5
                            } else if ( start > goal ) {
6
                              return null;
7
                            } else {
8
                              return find(start + 5, "(" + history + " + 5)") || find(start * 3, "(" + history + " * 3)");
9
                            }
10
                        
11
                            return find(1, "1");
12
                          }
13
                        }
 
1
                        <html style="color: green">
2
                        <!-- this is a comment -->
3
                        <head>
4
                        <title>Mixed HTML Example</title>
5
                        <style type="text/css">
6
                          h1 {font-family: comic sans; color: #f0f;}
7
                          div {background: yellow !important;}
8
                          body {
9
                            max-width: 50em;
10
                            margin: 1em 2em 1em 5em;
11
                          }
12
                        </style>
13
                        </head>
14
                        <body>
15
                        <h1>Mixed HTML Example</h1>
16
                        <script>
17
                          function jsFunc(arg1, arg2) {
18
                            if (arg1 && arg2) document.body.innerHTML = "achoo";
19
                          }
20
                        </script>
21
                        </body>
22
                        </html>
34
 
1
                        /* Some example CSS */
2
                        
3
                        @import url("something.css");
4
                        
5
                        body {
6
                        margin: 0;
7
                        padding: 3em 6em;
8
                        font-family: tahoma, arial, sans-serif;
9
                        color: #000;
10
                        }
11
                        
12
                        #navigation a {
13
                        font-weight: bold;
14
                        text-decoration: none !important;
15
                        }
16
                        
17
                        h1 {
18
                        font-size: 2.5em;
19
                        }
20
                        
21
                        h2 {
22
                        font-size: 1.7em;
23
                        }
24
                        
25
                        h1:before, h2:before {
26
                        content: "::";
27
                        }
28
                        
29
                        code {
30
                        font-family: courier, monospace;
31
                        font-size: 80%;
32
                        color: #418A8A;
33
                        }
34