diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..e38bcdaaca 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -9,55 +9,88 @@
-
+
A clap
-
+
S hihat
-
+
D kick
-
+
F openhat
-
+
G boom
-
+
H ride
-
+
J snare
-
+
K tom
-
+
L tink
- - - - - - - - - - + + + + + + + + + diff --git a/01 - JavaScript Drum Kit/style.css b/01 - JavaScript Drum Kit/style.css index 075578c930..ec7d19e486 100644 --- a/01 - JavaScript Drum Kit/style.css +++ b/01 - JavaScript Drum Kit/style.css @@ -23,7 +23,7 @@ body,html { margin: 1rem; font-size: 1.5rem; padding: 1rem .5rem; - transition: all .07s ease; + transition: all 0.07s; width: 10rem; text-align: center; color: white; @@ -32,7 +32,7 @@ body,html { } .playing { - transform: scale(1.1); + transform: scale(1.2); border-color: #ffc600; box-shadow: 0 0 1rem #ffc600; } diff --git a/02 - JS and CSS Clock/.vs/02 - JS and CSS Clock/v15/.suo b/02 - JS and CSS Clock/.vs/02 - JS and CSS Clock/v15/.suo new file mode 100644 index 0000000000..aa9fd4cd47 Binary files /dev/null and b/02 - JS and CSS Clock/.vs/02 - JS and CSS Clock/v15/.suo differ diff --git a/02 - JS and CSS Clock/.vs/ProjectSettings.json b/02 - JS and CSS Clock/.vs/ProjectSettings.json new file mode 100644 index 0000000000..f8b4888565 --- /dev/null +++ b/02 - JS and CSS Clock/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": null +} \ No newline at end of file diff --git a/02 - JS and CSS Clock/.vs/VSWorkspaceState.json b/02 - JS and CSS Clock/.vs/VSWorkspaceState.json new file mode 100644 index 0000000000..6b6114114f --- /dev/null +++ b/02 - JS and CSS Clock/.vs/VSWorkspaceState.json @@ -0,0 +1,6 @@ +{ + "ExpandedNodes": [ + "" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/02 - JS and CSS Clock/.vs/slnx.sqlite b/02 - JS and CSS Clock/.vs/slnx.sqlite new file mode 100644 index 0000000000..1912dc81a6 Binary files /dev/null and b/02 - JS and CSS Clock/.vs/slnx.sqlite differ diff --git a/02 - JS and CSS Clock/index-START.html b/02 - JS and CSS Clock/index-START.html index ee7eaefb1f..45b123a96f 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -18,7 +18,7 @@ diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 8a4f0d556e..38f4887836 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -21,6 +21,22 @@

Update CSS Variables with JS

diff --git a/04 - Array Cardio Day 1/index-START.html b/04 - Array Cardio Day 1/index-START.html index eec0ffc31d..bdd1552051 100644 --- a/04 - Array Cardio Day 1/index-START.html +++ b/04 - Array Cardio Day 1/index-START.html @@ -1,11 +1,73 @@ + Array Cardio 💪 +

Psst: have a look at the JavaScript Console 💁

+

Resources for Array Methods

+
    +
  • Array.prototype.filter()
  • +
  • How it works: Creates a new array with every element in an array that pass a test
  • +
  • Syntax: array.filter(function(currentValue, index, arr), thisValue)
  • +
+
    +
  • Array.prototype.map()
  • +
  • How it works: Creates a new array with the result of calling a function for each array element
  • +
  • Syntax: array.map(function(currentValue, index, arr), thisValue)
  • +
+
    +
  • Array.prototype.sort()
  • +
  • How it works: Sorts the elements of an array
  • +
  • Syntax: array.sort(compareFunction)
  • +
+
    +
  • Array.prototype.reduce()
  • +
  • How it works: Reduce the values of an array to a single value (going left-to-right)
  • +
  • Syntax: array.reduce(function(total, currentValue, currentIndex, arr), initialValue)
  • +
+ +
+

for the boulevard excercise

+ +
+ + + + +//You are working at a pie factory and want to pass the time. You assign a numerical value to each pie of the following +//[{type: 'Cherry', value: 1}, {type: 'Blueberry', value: 2},{type: 'Strawberry', value: 3}, {type: 'Raspberry', value: 5}, {type: 'Blackberry', value: -1}, {type: 'Apple', value: 13 }] + +//Create a function that takes an array of pies, looks up their numerical value, +//and returns an array where each value in the array is the sum of itself and all the previous numbers in the array + +//example [cherry, blueberry, strawberry] would equal to [1, 3, 6] +//if the array is empty they retun an empty array + + +//First place information into an array +const pies = [ + {type: 'Cherry', value: 1}, + {type: 'Blueberry', value: 2}, + {type: 'Strawberry', value: 3}, + {type: 'Raspberry', value: 5}, + {type: 'Blackberry', value: -1}, + {type: 'Apple', value: 13 } +]; + +//second only access the values +const pieValues = pies.filter(function(number){ + return number[1].value; +}); + +console.log(pieValues); + +function solution (pies) { + // Type your solution here + //function needs to look up value + //return an array + if (pies === undefined || pies.length == 0){ + return []; + } else { + alert(`here`); + + + // valuesFromPies.reduce(function (previous, current){ + // return previous + current + // }); + + } +}; + +solution(); diff --git a/readme.md b/readme.md index 392a400128..0c9070922a 100644 --- a/readme.md +++ b/readme.md @@ -1,49 +1,11 @@ -![](https://javascript30.com/images/JS3-social-share.png) - # JavaScript30 -Starter Files + Completed solutions for the JavaScript 30 Day Challenge. - -Grab the course at [https://JavaScript30.com](https://JavaScript30.com) - -## Community #JavaScript30 Content +My modifications to the code are located in the starter files within each directory. The original files are the ones denoted as finished. -Feel free to submit a PR adding a link to your own recaps, guides or reviews! - -* [Arjun Khode’s blog](http://thesagittariusme.blogspot.com/search/label/JS30) about summaries for each day, including fixed glitches, bugs and extra features -* [Nitish Dayal's Text Guides](https://github.com/nitishdayal/JavaScript30) are great for those who like reading over watching -* [Meredith Underell's](http://meredithunderell.com/tag/javascript30/) Quick Lessons Learned -* [Rowan Weismiller's](http://rowanweismiller.com/blog/javascript-30/) Recaps + Lessons Learned -* [Thorsten Frommen](https://tfrommen.de/tag/javascript-30/) shares how he solved the exercises before viewing the answers -* [Soyaine 写的中文指南](https://github.com/soyaine/JavaScript30)包含了过程记录和难点解释 -* [Ayo Isaiah's](https://freshman.tech/archive/#javascript30) Recaps and Lessons Learned -* [Adriana Rios](https://stpcollabr8nlstn.github.io/JavaScript30/) shares her alternative solutions -* [Michael Einsohn](http://30daysofjs.michaeleinsohn.com) publishes each challenge after watching the video once -* [Mike Ekkel](https://medium.com/@mike_ekkel/javascript-30-a-30-day-vanilla-js-challenge-6a733fc9f62c#.9frjtaje9) -* [Akinjide Bankole](https://github.com/akinjide/JS30days) used Node.js with [Jade](http://jadelang.net) to solve the exercises -* [Yusef Habib](https://github.com/yhabib/JavaScript30) lessons and tricks learned, and a [gh-page](https://yhabib.github.io/JavaScript30/) to see working all the mini-projects. -* [Amelie Yeh](https://github.com/amelieyeh/JS30) 30 lessons notes with things I've learned, and those important recaps. and directly view my demos [here](https://amelieyeh.github.io/JS30/) 🇹🇼😄 -* [Winar](https://github.com/winar-jin/JavaScript30-Challenge)的JavaScript30天挑战,记录练习过程,重难点和其他的解决方案。🎨 -* [Rayhatron](https://rayhatron.github.io/blog/) - walkthroughs, recaps and lessons learned. -* [Andrei Dobra](https://github.com/andreidbr/JS30) Full repo with lessons learned and a [gh-page](https://andreidbr.github.io/JS30/) with all the exercises. -* [从零到壹全栈部落](https://github.com/liyuechun/JavaScript30-liyuechun),春哥发起的从零到壹全栈部落,旨在带领大家一起学习,一起输出,文档化,代码化,中文视频化,全栈部落口号:输出是最好的学习方式。 -* [Usmaan Ali's](https://github.com/usyyy/javascript/blob/master/JavaScript30/analysis.md) summary of the technical skills learned from each project. He's also posting them as separate blog posts [here](https://medium.com/@usyyy) -* [Axel](https://github.com/afuh/js30)'s lessons learned and a [showcase](https://afuh.github.io/js30/) with the projects. -* [Chris](https://github.com/dwatow/JavaScript30) 中文實戰,目標描述、過程紀錄。 -* [Muhammad D. Ramadhan's](https://miayam.github.io) blog. He shamlesly mixed his personal life with 30 day JavaScript challenge so as to increase his learning retention. He also summarised the challenge on [one single page](https://miayam.github.io/js30). Do not read his blog! -* [Lee Keitel's Blog](https://blog.keitel.xyz/categories/javascript30/) includes summaries of each lesson, what I learned from each one, and my thoughts about the topic taught and using them in the future. -* [Dustin Hsiao](https://github.com/dustinhsiao21/Javascript30-dustin) 包含了各篇介紹、 效果Demo、各篇詳解及記錄過程,附上部分延伸閱讀及[gh-page](https://dustinhsiao21.github.io/Javascript30-dustin/)。 -* [GuaHsu](https://github.com/guahsu/JavaScript30) - 紀錄各篇練習過程與心得,並嘗試擴充部分練習,也做了一個包含全部練習的[介紹站](http://guahsu.io/JavaScript30/)🇹🇼 -* [Daniela](https://github.com/misslild)'s completed challenges on [GitHub Pages](https://misslild.github.io/WesBos-30day-Coding-challenge/) and [Codepen](https://codepen.io/collection/DapZeP/) :raised_hands: :muscle: :+1: -* [Dmitrii Pashutskii's](https://github.com/guar47) code of all challenges on [GitHub with Pages](https://github.com/guar47/javascript30Summary) and review [blog posts](https://blog.dpashutskii.com/tag/javascript30/) -* [Abid Hasan's](https://github.com/sabidhasan/javascript-30) completion of all challenges. This was awesome!! Learned so much! :+1: -* [Yusong Notes](https://sky172839465.github.io/course/js30) Records Yusong JS 30 days note and demo :star2: -* [Herminio Torres](https://github.com/herminiotorres/JavaScript30) lessons and tricks learned, and a [gh-page](https://herminiotorres.github.io/JavaScript30/) to see working all the mini-projects. +You can grab a version of the course at [https://JavaScript30.com](https://JavaScript30.com) ## A note on Pull Requests These are meant to be 1:1 copies of what is done in the video. If you found a better / different way to do things, great, but I will be keeping them the same as the videos. -The starter files + solutions will be updated if/when the videos are updated. - -Thanks! +![](https://javascript30.com/images/JS3-social-share.png)