Skip to main content

Coursework

0) Flipped Classroom Practice (3h)

The video playlist contains 5 "content" videos and 3 "practice" videos.

Here is an overview of the practice exercises:

1.1 Write a program that prints out to the console:

Hello Code Your Future

1.2 Write a program that prints out to the console:

Hello Maha
Hello Megumi
Hello Mohammad

2.0 Evaluate some expressions in the node REPL:

  • The sum of any two numbers
  • Your age this year (based on the difference between the current year and your year of birth)
  • A string containing your name
  • A variable called name with your name assigned to it
  • A template string using the name variable and a greeting in your language

2.1 Write a program that prints out to the console

Hello Maha your place in the waiting list is 1
Hello Megumi your place in the waiting list is 2
Hello Mohammad your place in the waiting list is 3

Can you think how you could use variables to represent the greeting (hello) and the position in the waiting list (1, 2, 3)?

2.2 Maha has been taken off the waiting list. Modify your program so that it prints out to the console:

Congratulations Megumi your place in the waiting list is 1
Congratulations Mohammad your place in the waiting list is 2

Did using variables make it easy or hard to make this change?

3.0 Write a program that contains a function called getAgeAtEndOf2023. The function should take a year of birth as an argument and return a person's age in 2023. Call this function multiple times to print out to the console:

Greg will be 39
Mirabela will be 36

3.1 Modify the program you wrote in 2.1 so that it prints out the same result but uses a function called getWaitingListMessage

3.2 Modify the program you wrote in 3.1 so that it prints out to the console

Hello Maha your place in the waiting list is 1
Hello Megumi your place in the waiting list is 2
Hello Mohammad your place in the waiting list is 3
Hello Margaret your place in the waiting list is 4
Hello Mohand your place in the waiting list is 5
Hello Mohib your place in the waiting list is 6
Hello Michael your place in the waiting list is 7

Did using a function make it easy or hard to make this change?

1) Read Intro to Tests

Make sure you read all of this guide by the end of this week (if you have not done so already). It will help you complete your coursework. Intro to Tests

2) JavaScript Challenges (4 hours) 🔑

Next, in the same repository, complete all of the exercises in the "Mandatory" folder.

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

3) Read Google "How to write code review comments"

How to write code review comments

4) Codewars (1 hour) 🔑

  1. Join Codewars: www.codewars.com/r/3xvPTg
  2. Read through this tutorial, to help you understand how to use Codewars: https://docs.codeyourfuture.io/course-processes/running-the-course/codewars
  3. Link your account with Github, and join the CodeYourFuture clan, so we can find you on the clan board here: https://www.codewars.com/users/CodeYourFuture/allies
  4. Every week you need to complete at least three kata. Spend at least 20 minutes, three times a week, on your kata workout.

Find the collection for JS-1 Week 1 on the CodeYourFuture account: https://www.codewars.com/users/CodeYourFuture/authored_collections

Codewars is one of your milestones.

5) (Stretch) Extra JavaScript Challenges

Have some extra time before our next class? Fill it with these harder challenges to help you stretch your abilities!

Alert: Some of these challenges might include concepts that we haven't taught you yet. You should us Google to try to learn how to solve them.

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

6) (Stretch) Even more JavaScript Challenges

Completed all of the addition challenges in the coursework? We have more challenges that you can find here:

https://github.com/CodeYourFuture/JavaScript-Core-1-Challenges

Share what you're working on in Slack to find others working on the same problems. Try paired programming to solve these challenges.

7) (Stretch) FreeCodeCamp (1 hour)

Complete all of these lessons on FreeCodeCamp. This will help you get a deeper understanding of what we have covered so far.

https://www.freecodecamp.org/learn

Make sure you have completed the following lessons from the Basic JavaScript course: All the lessons starting at Comment Your JavaScript Code up to and including Find the length of a string

8) Course Checklist (PD - 15 min)

Previous CYF trainees built the following course checklist to self-assess their understanding.

  1. Reflect on your understanding so far
  2. Fill in the course checklist for HTML/CSS
  3. Take the PDF to your study group and work on the areas you have identified

You can use this checklist throughout the course.