Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion 04 - Array Cardio Day 1/index-START.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@
// 8. Reduce Exercise
// Sum up the instances of each of these
const data = ['car', 'car', 'truck', 'truck', 'bike', 'walk', 'car', 'van', 'bike', 'walk', 'car', 'van', 'car', 'truck' ];

<!-- practice commit 1 -->
// const transportation = data.reduce(function(obj, item) {
// if (!obj[item]) {
// obj[item] = 0;
// }
</script>
</body>
</html>
3 changes: 2 additions & 1 deletion 08 - Fun with HTML5 Canvas/index-START.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<canvas id="draw" width="800" height="800"></canvas>
<script>
</script>

// Some data we can work with (again)
// Same as Day 1, plus a couple of new ones
<style>
html, body {
margin: 0;
Expand Down