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.
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.
When you open the page you will see:
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:
Thus passing the test!
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:
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!