Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9b06645
starting to understand the syntax of forEach
walzer85 Oct 24, 2017
01da042
added missing const
walzer85 Oct 24, 2017
7d6c868
added one more city
walzer85 Oct 24, 2017
26d8d99
will review this change in a bit
walzer85 Oct 25, 2017
f59c682
created react file for tictactoe
walzer85 Nov 15, 2017
d595018
imported in a tic tac toe from reacts website to experiment with it. …
walzer85 Nov 17, 2017
5d95264
following renee's tutorial
walzer85 Nov 24, 2017
cc1bfad
following renee's tutorial - creating clickEvent
walzer85 Nov 24, 2017
09526b0
can't get the board to dislpay
walzer85 Nov 24, 2017
1ca6011
maybe fixing css
walzer85 Nov 25, 2017
baaad3a
fixing CSS maybe?
walzer85 Dec 8, 2017
47255ab
defined the square function to create the squares for the board
walzer85 Dec 8, 2017
7bcecb4
made the square a button
walzer85 Dec 8, 2017
35ea88e
need to make the board next
walzer85 Dec 8, 2017
b0d2b19
displaying the rows of clickable squares on the page
walzer85 Dec 8, 2017
051b7ec
displaying the rows of clickable squares on the page
walzer85 Dec 8, 2017
7e045df
made the render for all squares
walzer85 Dec 8, 2017
eaa73b4
getting an error from index.js, attempting to fix
walzer85 Dec 8, 2017
f41c0bd
added export default App
walzer85 Dec 8, 2017
6547ae7
fixed index.js error by matching names with app.js
walzer85 Dec 8, 2017
9003d0b
beggining to design the game itself now that i've set up the board
walzer85 Dec 8, 2017
a665e19
made the empty values in squares
walzer85 Dec 8, 2017
30adaf5
set up squares to be set as empty
walzer85 Dec 9, 2017
82c733a
work from react workshop
walzer85 Dec 9, 2017
9d66e93
adding the handleClick function
walzer85 Dec 10, 2017
0f3f8ed
ready to submit
walzer85 Dec 11, 2017
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
81 changes: 81 additions & 0 deletions 01week/datatypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
`use strict`

//returns current date and time
//create a function that inputs the year, month, and day
//make new var to store the today var and toDateString method
//use var today with toDateString method

function dateDisplay(year, month, date) {
var today = new Date(year, month, date);
return today.toDateString();
}

dateDisplay(1985, 10, 1);

//create a function with one argument.
//the argument should be a number
//return the argument with the toString() method to make the number a string

function toNumber(number) {
return number.toString()
}

toNumber(13);

//create a fucntion that receives one argument
//argument should be a string
//use parseInt() method on argument to pull a number out

function stringNum(str){
return parseInt(str);
}

stringNum('15 years');

//create a function with one argument
//use the typeOf method on the argument and return the result

function dataType(dT){
return typeof(dT);
}

dataType(`words words words`);

//Create a function with two arguments
//Inside the function, add the two var together
//Use parseInt() to take the number out of the string

function add(numOne, numTwo) {
return parseInt(numOne) + parseInt(numTwo)
}

add(`13`, `17`);

//write a function that returns a true if two var are truthy
//if both var are true, show "nope"
//if both var are false, also show "nope"
// if one is false and one is true, show "yep!"

function truest(thingOne, thingTwo) {
if ((thingOne === true && thingTwo === true) || (thingOne === false && thingTwo === false)){
return `nope`;
} else {
return 'yep!';
}
}

truest(true, false);

//write a function with two arguments
//if both arguments are false, show a confirmation message
//if either argument is true, return a negative response

function womp(dumb, dumber) {
if (dumb === false && dumber === false) {
return `yes, they're both false`
} else {
return 'nah, try again'
}
};

womp(false, true);
21 changes: 21 additions & 0 deletions 01week/reactworkshop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
2,229 changes: 2,229 additions & 0 deletions 01week/reactworkshop/README.md

Large diffs are not rendered by default.

Loading