1. Build a Game with JavascriptBuild a Game with Javascript
April 2018
WIFI: Deskhub-main
Ā Password: stake2017!
http://bit.ly/jsgame-sdhttp://bit.ly/jsgame-sd
Ā
codepen.io - glitch.com
Interactive Slides: bit.ly/sd-slides-41918
1
3. About you
What's your name?Ā
What brought you here today?
What is your programming experience?
bit.ly/jsgame-sd
3
4. About Thinkful
Thinkful helps people become developers or data scientists
through 1-on-1 mentorship and project-based learning
These workshops are built using this approach.
bit.ly/jsgame-sd
4
5. Suggestions for learning
Don't treat this as a drill, we're making something real
Don't get discouraged, struggle leads to mastery
Don't be shy, take full advantage of our support
bit.ly/jsgame-sd
5
6. This is what we're making
View example here
bit.ly/jsgame-sd
6
7. Agenda
Learn key Javascript concepts (30 min)
Go over starter code (10 min)
Build your site with our support! (30 min)
Go over answer key (10 min)
Steps to continue learning (10 min)
bit.ly/jsgame-sd
7
8. De ning a variable with Javascript
var numberOfSheep = 20var numberOfSheep = 20
Initialize variable
Name of variable
Value of variable
8
10. Declaring a function with Javascript
function greet() {function greet() {
Ā Ā return "Hello world!";Ā Ā return "Hello world!";
}}
Initialize function Name of function
What the function does
10
16. Parameters within functions
function adder(a, b) {function adder(a, b) {
Ā Ā return a + b;Ā Ā return a + b;
}}
adder(1,2);adder(1,2);
Parameters in declaration
Parameters used
within the function
16
22. Thinkful's Free Resource
HTML, CSS and JavaScript
Unlimited mentor-led Q&A sessions
Personal Program Manager
Only availableĀ during this event
bit.ly/tfsd-wdbit.ly/tfsd-wd
22