Open derpachu opened 7 years ago
Sorry it took so long to get a review on this. I really, really like this project!! Definitely one of my the nicest implementations I've seen so far. š š„ šš„ š š I especially like:
I don't want to hold you up on this project any longer than I already have with my late feedback, so I'm giving this a :shipit:, but since you asked about style in JavaScript, I think my biggest piece of feedback would be that more and smaller functions are never a bad thing. š
I also just put together a little refactor (including some arrays, since you have prior programming experience), with comments to give you an idea of some areas for improvement. Let me know what you think and if you have any questions/comments! š
Will things like dictionary eventually be covered or will be more array like?
Yes! There's currently a lesson about objects, which are like dictionaries.
@chrisvfritz Can you take a look at this? It's hosted here and meets the following criteria:
prompt
andconfirm
functions (each at least once) to collect choices from the user (the entire story will take place in dialog boxes, so yourbody
element could actually be empty, apart from thescript
element to include your JavaScript)if
,else if
, andelse
to branch the story, based on user choicesMath.random()
&&
or||
) at least once, where it makes sensenull
/undefined
where appropriateWrote the javascript python style, is there any habits of writing javascript that I should know about?