Skip to content

Instantly share code, notes, and snippets.

@damwhit
Last active September 20, 2023 22:52
Show Gist options
  • Save damwhit/eaf5d7419e89793af0eaf757462ca03d to your computer and use it in GitHub Desktop.
Save damwhit/eaf5d7419e89793af0eaf757462ca03d to your computer and use it in GitHub Desktop.
Mod 0 Session 1 Practice Tasks

Session 1 Practice Tasks

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.

1. Markdown (20 min)

Markdown is the format all of your homework gists are 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 data types" documenting your data types knowledge so far using Markdown.

NOTE: Remember to add a .md file extension to filename of your new Gist. Otherwise it will not register as 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:

2. Documentation and Googling (20 min)

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:

  • What did you Google to help you with this task, and how did you pick your results?

  • 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:

  • What did you Google to help you with this task, and how did you pick your results?

3. Data Types and variable assignment (20 min)

Imagine that you're taking your favorite board game and turning it into a computer-based game.

  • Name of board game: Your game goes here

  • Use the space below to categorize game data into each of the following data types. You should have a minimum of two variables assigned for each data type below. Feel free to break each variable declaration on to its own line. Pick either ruby or javascript based on your program (see examples below for how they should look)

  1. String data:
ruby example:
player_name = 'David'

javascript example:
var gamePiece = 'Old wooden ship';
  1. Integer and/or float data:
  2. Boolean data:
  3. Array data:
  4. OPTIONAL: Hash or Object data:

4. Questions/Comments/Confusions

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment