Courses‎ > ‎Software Development 1‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

Work 15: Won't you take me to ... function town!

posted Dec 6, 2017, 6:11 AM by JonAlf Dyrland-Weaver
With your table buddy:
  1. Grab a copy of open_me.html from the 15_js folder in the workshop.
    1. DO NOT MODIFY THIS FILE
  2. Create a file called funky_town.js
    • open_me.html loads a script file by this name.
    • You will write javascript functions in this file, which you can test by opening open_me.html in a browser and going to the developer console.
    • What functions you ask? Let me tell you
      1. fibonacci(n)
        • Should return the nth fibbonaci number
      2. gcd(a, b)
        • Find the greatest common divisor of a and b.
        • You may want to consult some old code from intro or AP
      3. randomStudent()
        • Should return a randomly selected name from a list.
        • You may want to create helper functions or external list variables here, do whatever you think is needed.
Submit this in the 15_js section of the workshop
Comments