-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
103 lines (97 loc) · 5.04 KB
/
index.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!doctype html>
<html>
<head>
<title>BS: Let vs Var</title>
<!-- the scripts that make it work -->
<link href="./utils/parsons.css" rel="stylesheet" />
<link href="./utils/lib/prettify.css" rel="stylesheet" />
<script src="./utils/lib/prettify.js"></script>
<script src="./utils/include.js"></script>
<script src="./utils/lib/jquery.min.js"></script>
<script src="./utils/lib/jquery-ui.min.js"></script>
<script src="./utils/lib/jquery.ui.touch-punch.min.js"></script>
<script src="./utils/lib/underscore-min.js"></script>
<script src="./utils/lib/lis.js"></script>
<script src="./utils/parsons.js"></script>
<script src='./utils/index.js'></script>
</head>
<body>
<!-- your snippet to run in debugger -->
<script src='./snippet.js'></script>
<div>
<!-- your problem description goes here -->
<h1><a href="https://github.com/elewa-academy/block-scope-let-vs-var">Block Scope: Let vs Var</a></h1>
<br>
<br>
</div>
<hr>
<div id="pytut">
<h2><a href="https://goo.gl/s6NGd4" target="_blank">PyTut Link</a></h2>
</div>
<hr>
<div id="parsons">
<div name="parsons-boxes">
<!-- modify this line's id -->
<div id="shuffled-let-vs-var" name="shuffled" class="sortable-code"></div>
<!-- modify this line's id -->
<div id="sorted-let-vs-var" name="sorted" class="sortable-code"></div>
<div style="clear:both;"></div>
</div>
<div name="parsons-buttons">
<!-- modify this line's id -->
<a href="#" id="reshuffle-let-vs-var" name="reshuffle">Re-Shuffle</a>
<!-- modify this line's id -->
<a href="#" id="feedback-let-vs-var" name="feedback">Get feedback</a>
</div>
<script>
// define your challenge here
config = {};
config.shuffled_id = "shuffled-let-vs-var";
config.sorted_id = "sorted-let-vs-var";
config.reshuffle_id = "reshuffle-let-vs-var";
config.feedback_id = "feedback-let-vs-var";
config.challenge = // guidelines here for how code should be
"let outer_let = 'outer let'; \n" +
"console.log('leaving outer scope'); \n" +
"{ \n" +
" console.log('entering block scope'); \n" +
" var inner_var = 'global var'; \n" +
" let inner_let = 'inner let'; \n" +
" console.log('leaving block scope'); \n" +
"}; \n" +
"console.log('re-entering outer scope'); \n" +
"inner_var = 'modified globally'; \n" +
"console.log('final state');"
init_section(config);
</script>
<br>
</div>
<hr>
<div id="replit-demo">
<h2>play with it</h2>
<iframe height="600px" width="100%" src="https://repl.it/@colevandersWands/block-scope-let-vs-var?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
</div>
<hr>
<div id="replit-ex-1">
<h2>Exercise 1</h2>
<iframe height="400px" width="100%" src="https://repl.it/@colevandersWands/let-vs-var-ex-1?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
</div>
<hr>
<div id="replit-ex-2">
<h2>Exercise 2</h2>
<iframe height="400px" width="100%" src="https://repl.it/@colevandersWands/let-vs-var-ex-2?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
</div>
<hr>
<div id="replit-ex-3">
<h2>Exercise 3</h2>
<iframe height="400px" width="100%" src="https://repl.it/@colevandersWands/let-vs-var-ex-3?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
</div>
<hr>
<a href="https://github.com/elewa-academy/block-scope-let-vs-var">back to the repo</a>
<hr>
<hr>
<a href="http://elewa.education/blog" target="_blank"><img src="https://user-images.githubusercontent.com/18554853/34921062-506450ae-f97d-11e7-875f-6feeb26ad72d.png" width="150" height="60"/></a>
<br>
<br>
</body>
</html>