Skip to content

Instantly share code, notes, and snippets.

View adriantoddross's full-sized avatar

Adrienne adriantoddross

  • #100Devs
  • Portland, OR
  • 12:12 (UTC -12:00)
View GitHub Profile
@adriantoddross
adriantoddross / chasercodetest.md
Last active September 26, 2018 02:24
Chaser Code Test

Code Test: You have an array of objects in JavaScript. Each one contains a name (a string) and ranking (a number). Write two functions, one to return the objects ordered by ranking and another to return the average ranking.

// Let's create some dummy data beforehand to test our work.
const data = [
  {name: 'Adrian', rank: '23'},
  {name: 'John', rank: 86},
  {name: 'Robert', rank: '100'}
]; 
@adriantoddross
adriantoddross / myfirstfrag.md
Created August 22, 2018 19:28
My First Fragment
    <Fragment>
        <button
          className='bill-button'
          aria-expanded={this.state.expanded}
          aria-controls={collapsibleIdentifier}
          onClick={this.togglePanel}
        >
          <div className='bill-info'>
 ${amount}

A list language

In this short assignment we're going to learn about a basic programming language which works with lists.

Lists

In this language, a list is just a list of numbers. You can add and remove numbers from the end of the list, but you aren't allowed to insert or remove numbers from the beginning or middle of the list. Here's an example of a list containing three numbers:

10 24 64