Forked from rwarbelow/mod_0_session_2_practice_tasks.md
Last active
February 20, 2019 04:50
-
-
Save Edwardjackc/0a0ad22c2f11af23dbe3e1bfccc65229 to your computer and use it in GitHub Desktop.
Revisions
-
Edwardjackc revised this gist
Feb 20, 2019 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -71,14 +71,14 @@ Imagine that you're taking your favorite board game and turning it into a comput - [x] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! When you're done, take a photo of your diagram and post it in the Mod 0 channel on Slack. Your instructor(s) will provide feedback in a thread. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ - [x] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - Product improvement, improving a recipe or improving something like an iphone with feed back from consumers - Making food, making a recipe to completion and plating it. - Building a deck, following a set of steps will result in a built deck. - [x] Create a list below of **three programming situations** where iteration would be used. For each situation, explain why it would be an example of iteration. - Code breaking, applying differnt integers in a sequence till the code is broken - Refreshing a webpage to display content till a button is pressed, a moving screen on a game - Retrieving specific information from a database, searching for names that match a search query through out a data base ### 4. Modify your Bash Profile (10 min) -
Edwardjackc revised this gist
Feb 20, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Imagine that you're taking your favorite board game and turning it into a comput - Making food - Building a deck - [x] Create a list below of **three programming situations** where iteration would be used. For each situation, explain why it would be an example of iteration. - Code breaking - Refreshing a webpage - Retrieving specific information from a database -
Edwardjackc revised this gist
Feb 20, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Imagine that you're taking your favorite board game and turning it into a comput - [x] Name of board game: Connect 4 - [x] 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. 1. String data: Red or Black chip 1. Integer and/or float data: 5 Spaces up and 5 Spaces across -
Edwardjackc revised this gist
Feb 20, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,7 +56,7 @@ console.log(Object.values(object1)); Imagine that you're taking your favorite board game and turning it into a computer-based game. - [x] Name of board game: Connect 4 - [ ] 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. -
Edwardjackc revised this gist
Feb 20, 2019 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,15 +56,15 @@ console.log(Object.values(object1)); Imagine that you're taking your favorite board game and turning it into a computer-based game. - [ ] Name of board game: Connect 4 - [ ] 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. 1. String data: Red or Black chip 1. Integer and/or float data: 5 Spaces up and 5 Spaces across 1. Boolean data: Is the space availble, is it playable 1. Array data: Saving the Black chip board placement and saving the red chip board placement 1. Hash or Object data: Saving the game board to return to, saving the game board for remote play between two players ### 3. Iteration (30 min) -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -71,14 +71,14 @@ Imagine that you're taking your favorite board game and turning it into a comput - [x] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! When you're done, take a photo of your diagram and post it in the Mod 0 channel on Slack. Your instructor(s) will provide feedback in a thread. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ - [x] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - Product improvement - Making food - Building a deck - [ ] Create a list below of **three programming situations** where iteration would be used. For each situation, explain why it would be an example of iteration. - Code breaking - Refreshing a webpage - Retrieving specific information from a database ### 4. Modify your Bash Profile (10 min) -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -70,7 +70,7 @@ Imagine that you're taking your favorite board game and turning it into a comput - [x] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! When you're done, take a photo of your diagram and post it in the Mod 0 channel on Slack. Your instructor(s) will provide feedback in a thread. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ - [x] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - Getting ready for company - After making food - Disenfecting apartment after being sick -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -71,9 +71,9 @@ Imagine that you're taking your favorite board game and turning it into a comput - [x] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! When you're done, take a photo of your diagram and post it in the Mod 0 channel on Slack. Your instructor(s) will provide feedback in a thread. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ - [ ] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - Getting ready for company - After making food - Disenfecting apartment after being sick - [ ] Create a list below of **three programming situations** where iteration would be used. For each situation, explain why it would be an example of iteration. - -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 3. Iteration (30 min) - [x] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! When you're done, take a photo of your diagram and post it in the Mod 0 channel on Slack. Your instructor(s) will provide feedback in a thread. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ - [ ] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const object1 = { console.log(Object.values(object1)); - [x] What did you Google to help you with this task, and how did you pick your results? javascript "object values method" I went through a few but focused on ones with examples. ### 2. Data Types (15 min) -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,7 @@ fruits.splice(2, 0, "Lemon", "Kiwi"); - [x] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [x] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: creates an array that contains the object's own enumerable property values in the same order, in a loop const object1 = { a: 'Edward', -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,8 @@ fruits.splice(2, 0, "Lemon", "Kiwi"); - [x] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: creates an array that contains the object's own enumerable property values in the same order, in a loop const object1 = { a: 'Edward', b: 0, -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,9 +39,16 @@ fruits.splice(2, 0, "Lemon", "Kiwi"); - [x] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: returns an array const object1 = { a: 'Edward', b: 0, c:false }; console.log(Object.values(object1)); - [ ] What did you Google to help you with this task, and how did you pick your results? javascript "object values method" I went through a few but focused on ones with examples. ### 2. Data Types (15 min) -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,9 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array. var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.splice(2, 0, "Lemon", "Kiwi"); - [x] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [x] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [x] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [x] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,9 +33,9 @@ pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: Copies a part of an array and makes a new array with the information without changing the original array - [ ] What did you Google to help you with this task, and how did you pick your results? Javascript splice, I went with the one with the description that was about "understanding correctly" - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ words_str = 'Dog,Cat,Pig' words_arr = words_str.split(',') pp words_arr # ["Dog", "Cat", "Pig"] - [x] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Documentation of a langauge, framework, or tool is the information that describe - [x] What did you Google to help you with this task, and how did you pick your results? What does push do in Ruby, I went with the one that was on a study guide site. - [x] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: It cuts up a string into predefined strings into an array of smaller strings. require 'pp' words_str = 'Dog,Cat,Pig' words_arr = words_str.split(',') -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Documentation of a langauge, framework, or tool is the information that describe - [x] What did you Google to help you with this task, and how did you pick your results? What does push do in Ruby, I went with the one that was on a study guide site. - [ ] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: It cuts up a string into predefined strings into an array of smaller strings. require 'pp' words_str = 'Dog,Cat,Pig' words_arr = words_str.split(',') -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Documentation of a langauge, framework, or tool is the information that describe - [x] What did you Google to help you with this task, and how did you pick your results? What does push do in Ruby, I went with the one that was on a study guide site. - [x] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: It cuts up a string into predefined strings into an array of smaller strings. require 'pp' words_str = 'Dog,Cat,Pig' words_arr = words_str.split(',') -
Edwardjackc revised this gist
Feb 19, 2019 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,9 +25,13 @@ Documentation of a langauge, framework, or tool is the information that describe - [x] What did you Google to help you with this task, and how did you pick your results? What does push do in Ruby, I went with the one that was on a study guide site. - [ ] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: It cuts up a string into predefined strings into an array of smaller strings. require 'pp' words_str = 'Dog,Cat,Pig' words_arr = words_str.split(',') pp words_arr # ["Dog", "Cat", "Pig"] - [ ] What did you Google to help you with this task, and how did you pick your results? What does split method do in Ruby, I went with a Ruby study guide - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer:
NewerOlder