The assignments listed here should take you approximately 60 minutes.
To start this assignment, click the button in the upper right-hand corner that says Fork. This is now your copy of the document. Click the Edit button when you're ready to start adding your answers. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
Documentation of a language, framework, or tool is the information that describes its functionality. For this part of the practice tasks, you're going to practice digging into documentation and other reference material.
NOTE: Remember to look for the docs! mdn for javascript and ruby-doc for ruby.
-
In your own words, what does the JavaScript/Ruby string split method do (pick based on your program)? As you're explaining, be sure to provide an example. Your answer: String split allows you to break up a string based on the inputted separator, using a space word break the string into words for ex. turingString = "Turing Mod 0 is a lot of fun" splitString(turingString, space) would allow you to access each word independently in an array "Turing" "Mod" "0" "is" "a" "lot" "of" "fun"
-
What did you Google to help you with this task, and how did you pick your results? javascript split string, I picked based on official MDN and near the top
-
In your own words, what does the JavaScript/Ruby array slice method do (pick based on your program)? As you're explaining, be sure to provide an example. Your answer: Splice allows you to edit the array and either enter in a new entry or remove an entry or multiple. Ex. var myDog = ['Windsor', 'Kelsie', 'Bobby', 'Charley']; var removed = myDog.splice(2, 1); //myDog = ['Windsor', 'Kelsie', 'Charley']; // removed = ['Charley']
-
What did you Google to help you with this task, and how did you pick your results? javascript array splice, picked first result MDN offical documentation
Imagine that you're taking your favorite board game and turning it into a computer-based game.
-
Name of board game: Monopoly__
-
Use the space below to categorize game data into each of the following data types. You should have a minimum of two pieces of data for each category. Try practicing variable assignment in this exercise.
- String data: Name of players, Property names
- Integer and/or float data: Property prices, Player's Money, Rent prices. roll of the dice
- Boolean data: Your turn/not your turn, roll doubles/not doubles
- Array data: properties owned, players, properites not owned
- OPTIONAL: Hash or Object data:
Markdown is the format all of your homework gists have been written in.
Using this markdown cheatsheet, create a new gist of your own by clicking the New Gist button in the upper right-hand corner of the screen. Create a "Beginners Guide to Git" documenting your git knowledge so far using Markdown. Incorporate each of the following features into your Gist:
-
at least two headings of different sizes
-
at least one numbered list
-
at least one bullet point list
-
at least one bold word/phrase
-
at least one italic word/phrase
-
at least one code block
-
at least one inline code block (greyed text)
-
at least one image
-
Paste the link to your gist here: https://gist.github.com/attom2/63b2b023c28ff8b71f8369b86d4da17f/edit
If you have any questions, comments, or confusions from the any of the readings that you would like an instructor to address, list them below:
@attom2 overall, nice work on this!