dev2 – review 08-11 Problem Set

  1. Random Color – Create a function randomColor() when called returns a random RGB color value like rgb(173, 65, 203).
  2. Game – Create three functions startGame()endGame(), and checkGame(). Each function returns the boolean value of gameOver and should affect gameOver as the function name suggests.
  3. Range Array – Create a function rangeArray(start, end)which takes two numbers as arguments. The function returns an array containing all the numbers from the start up to and including the end. For example: rangeArray(3, 9) returns [3,4,5,6,8,9].
  4. Only Numbers – Create a function onlyNums(arr) which takes an array as an argument. The function returns an array that has removed any values except numbers. For example: onlyNums(["fun", 23, 45, undefined, "a", 4]) returns [23, 45, 4].

Why learn to code?

via Lisa Charlotte Rost, “How I Feel When I Learn To Code

I’m not sure if you’ve actually asked yourself this question or tried to describe an answer to this question. So I thought we’d start with this given we’re in a classroom with students that will be taking their first JavaScript course as well as those taking their second.

If you’ve never thought about it, consider looking at the r/learnprogramming subreddit. This is one of many communities out there where people are starting out with a number of different programming languages looking for support in a variety of ways – getting started, finding a project to work on, showcasing tools you use, getting feedback on work, and finding the answer to an-infinite-number-of-problems-encountered-when-trying-to-learn-to-program.

Look through the subreddit’s wiki on “common concerns and fears” and “questions about learning.” Choose a couple topics from these to talk to a partner about. Take notes on their answers as well as yours. Summarize your thoughts, concerns, and questions in your first blog post.

dev2 – JS Review Sections 08-11

Topics

Tutorials

  • Section 08, videos 067 – 078; Section 09, videos 079 – 092; Section 10, videos 093 – 102; Section 11, videos 103 – 113
  • dev1 08-11 Tutorial Notes
  • Exercise files to publish on your server, HTML/JS pairs
    • Section 08
      • age-calculator.js
    • Section 09
      • number-guess.js
      • annoy-o-matic.js
    • Section 10
      • func-prob-set.js includes isEven(num)factorial(num), and kebabToSnake(str)
    • Section 11
      • arr-prob-set.js includes functions printReverse()isUniform()sumArray(), and max().

Problem Set

Problem set files to be published on your server with one HTML file and four JS files connected:

  • webdev2-prob-set1.html
  • random-color.js
  • game.js
  • range-array.js
  • only-numbers.js

Blog Questions

  • Describe which section you felt most comfortable with and which you felt least comfortable with and why. Give a specific example of JS using enLighter for each.
//Here's my example of code that I feel comfortable with.
//Basic variable declarations - strings, numbers, arrays, booleans, etc...

//some code

//my example that I'm least comfortable with
//declaring arguments for a function and calling the function

//some code

dev1 – Introduction to JavaScript

Topics

Tutorials

  • Section 08, videos 067 – 078
  • dev1 08 Tutorial Notes
  • Exercise files to publish on your server, HTML/JS pairs
    • greeting.html and greeting.js
    • stalker.html and stalker.js
    • age-calculator.html and age-calculator.js

Problem Set

Problem set files to be published on your server with HTML/JS pairs:

  • desserts.html and desserts.js
  • credits.html and credits.js
  • quote.html and quote.js
  • name.html and name.js

Blog Questions

  • Describe how you connect an HTML file and a JS file.
  • Describe the difference between writing code in the Chrome console and writing HTML/JS files that are then open in Chrome.
css.php