Skip to content

foundersandcoders/old-morning-challenges

Repository files navigation

Morning Challenge

Each morning we will have a new challenge posted in this repository.

An html file with the day's date will contain a failing test.

The challenge is understand the problem (ask questions if unclear!)
and make the test pass by writing just enough code.

These challenges aren't meant to be "easy", they are solvable with Google and Teamwork skills.

Setup

Clone this repo:

git clone https://github.com/foundersandcoders/morning-challenge.git && cd morning-challenge

#### install the (node.js) dependencies:

npm install

If you have any trouble installing node or the dependencies, shout!

#### Start the Static Server

npm start

If you get an error, let us know. You wont' be able to make any progress without this working.

Wednesday 23nd September 2015 /20150923/index.html

"Latest News"

When you open the page you will see:

un-ordered

The challenge is to write the orderNewsArticlesByMostRecentDateTime function

Which will order the news articles by date so that the first article is the most recent one. e.g:

ordered

Thus passing the test!


Tuesday 22nd September 2015 archive/20150922/index.html

"Like A Boss"

Your challenge today is to inspect the DOM of in the 20150922/index.html page and write a function to find the article title containing the word "Boss".

Start the static server npm start and then visit: http://localhost:8000/archive/20150922/

You should expect to see something like this in your browser:

like-a-boss-morning-challenge-example

Now open the file: archive/20150922/index.html in your editor and write the findTitleContainingWord() function that passes the test!

If the challenge is unclear, ask for clarification: https://github.com/foundersandcoders/morning-challenge/issues If the solution is not apparent to you, dust off your google/teamwork skills!

About

Morning challenges from previous versions of the course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published