Giter Club home page Giter Club logo

javascript-core-1-coursework-week3's Introduction

Like learning a musical instrument, programming requires daily practise.

The exercises are split into three folders: exercises, mandatory and extra. All homework in the exercise and mandatory section must be completed for homework by the following lesson.

The extra folder contains exercises that you can complete to challenge yourself, but are not required for the following lesson.

Solutions

The solutions for this coursework can be found here:

https://github.com/CodeYourFuture/JavaScript-Core-1-Coursework-Week3-Solution

This is a private repository. Please request access from your Teachers, Buddy or City Coordinator after the start of your next lesson.

Testing your work

  • Each of the *.js files in the 1-exercises folder can be run from the terminal using the node command with the path to the file. For example, node 1-exercises/A-undefined/exercise.js can be run from the root of the project.
  • To run the tests in the 2-mandatory folder, run npm run test from the root of the project (after having run npm install once before).
  • To run the tests in the 3-extra folder, run npm run extra-tests from the root of the project (after having run npm install once before).

Instructions for submission

For your homework, we'll be using test driven development to check your answers. Test driven development (or TDD) is the practice of writing tests for your code first, and then write your code to pass those tests. This is a very useful way of writing good quality code and is used in a lot of industries. You don't have to worry about knowing how this works, but if you're curious, engage with a volunteer to find out more! :)

  1. Complete the challenges in each file and save it once you're happy with your changes
  2. Run the script to check the results against the tests - all tests should read PASSED if you completed the challenges correctly. If a test reads FAILED, find the associated test to identify which function failed and fix it.
  3. Raise a PR once you're happy with the quality of your code

javascript-core-1-coursework-week3's People

Contributors

dubchoi avatar moneyinthesky avatar sallymcgrath avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

javascript-core-1-coursework-week3's Issues

Record playlist JS1 Week 3

Contents

How to create arrays ( 4/5 mins ) - video 1

  • Start with 10 different variables of the same type and then explain why this is a problem. What will happen when we create more and more of these variables?
  • Emphasise zero-indexing in arrays
  • Modifying arrays ( updating an item at a particular index )

for..of loop ( 5/10 mins ) - video 2

  • You can check out the traditional for loop in the previous section
  • Demonstrate use of for..of loop with an array

Walk through some code ( 10 mins) - video 3

  • Step through a code example like a computer
  • Show the debugger
  • Pick an example of one function calling another ( days of the week from JS1 Week 3 syllabus notes )

Actions

  • @alicagatay add some examples to the repo for your sections

Wrong question explanation -JS-core1-week3-financial-times.js- third function

Hi @moneyinthesky @SallyMcGrath , in the third exercise of financial-times mandatory homework JS-core1-week3, the explanation is :

The Financial Times wants to understand what the average number of characters in an article title is.
Implement the function below to return this number - rounded to the nearest integer.

function averageNumberOfCharacters(allArticleTitles) {
// TODO
}

allArticleTitles is an array of strings, the question is asking for getting the average number of characters in an article title which means the average number of characters in each string(sum of the whole characters in each string (title) and divided them by the whole characters in the article title array). we will have different average numbers for this array of title articles for each string inside of this array.
in the end, the question is saying that there is just one number to be returned.

I think there should be more clarification for this question like the lowest or highest average or which average of title we want them to return.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.