Wed. Jan. 5th
Move to Online Learning

Welcome back from an extra-long holiday break!

  • Everyone have workable tech?

    • All classes will be at meet.google.com

      • You should see a link to join the class (must be using @stu.ocsb.ca)

    • Know of a classmate who is having difficulties?


  • Mental health is important - talk. Talk to parents, friends, your teachers, your goldfish. There are lots of supports available to you but we can't read your mind through a silent icon in a Google Meet.

  • Attend class. Don't get lazy, don't make excuses. (but life does happen)

    • Every class day at 11:30am (sharp). It is recommended that you do TypingClub from 11:20 to 11:30.

    • Attend from a desk / table. Don't be lying in bed.

    • Limit distractions that you can control (turn phones off, no "second screen syndrome")

    • Turn your camera on and participate - be involved in your learning

      • Can you see / hear ok?

      • If my mic cuts or you miss something, if your internet pauses, if you have a question, if you need me to repeat…

Instant Answer Question Time

(opportunity to ask anything you want)

Where are we in the course? Great question!

So far we have covered all the basic coding constructs:

  • Variables (using let not var)

    • boolean

    • String

    • number

    • Arrays

  • Various Mathematics and shortcuts

  • If-statements (and optional else-if or else)

  • Loops

    • Do & While

    • For

  • Functions

    • Parameters

    • Return (with optional value)

  • Input from the user

    • JavaScript: prompt() for now...

  • Output to the screen

    • JavaScript: console.log() for now...

We've also seen some things specific to JavaScript (but usually available in other languages):

  • Math object (round(), random(), PI, etc)

  • isNaN()

  • typeof

  • parseInt (or Number)

All of this is readily available in tutorials online and through w3schools.

Does anyone need a refresher or quick tutorial on anything listed above (or anything I missed)?

You've created guessing games and several different helpful functions!

Having helper functions on hand can save a lot of time - instead of reinventing the wheel! For example, we've used this one a lot:

function randInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}

Many programmers keep these snippets of useful code in a safe place - you might want to consider doing that!

So what now, boss?

Some of you are not finished all of the tasks / assignments in the course. In fact - many are still behind in Unit 0.

    • Lessons 10-15 are still available for anyone who has not completed them. Do those today.

    • Go through the Replit tasks in our "team" and make sure you have completed / submitted them all.

    • Anyone who still needs to present their history topic - make sure it's complete and good. Now's your chance. Don't procrastinate any further! Presentations start again this Friday

    • Done everything? Check the Autograded, Optional Tasks in Replit (scroll to the bottom of our team) for some good, challenging tasks.

    • Done all those, too? Our next adventure will be to learn HTML and connect our JavaScript to a web page for a more interactive experience. If you are new to HTML, I highly recommend this video for a great intro.

That's it for today. Tomorrow we will start back up with a Unit 3 Summary task that will involve Arrays, so make sure you understand loops and arrays!