I understand that functions in JavaScript can take any number of arguments.
True
I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript.
True
Throughout the module (and your journey to Google enlightenment while working on IdeaBox2.0) you may notice a few different ways that JavaScript code is being written.
That might have something to do with something called ES6
and ES5
ES6
?
-ECMAScript 6, is also known as ECMAScript 2015 and is the new standard for ES. It is the first major update since 2009 with ES5. Several major changes have been made to the language, including, but not limited to the following:
-Arrows - functional shorthand using =>. Share the same this as the surrounding code.
-Class - single declarative form allowing for more interoperability
-Enhanced Object Literals - I do not know what this means.**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI) | |
**Step Two**: Fork this gist. | |
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?" | |
The question of which sorting algorithm should be used versus another depends on the goal of the project one is trying to solve. Our main concern with sorting algorithms are with how long it takes to complete the algorithm and also how much memory the algorithm uses. Bubble sort is a simple sorting algorithm, often used for teaching first lessons on algorithms. It's easy to understand as a visual, simple to pseudocode for a beginner, but slow in actual processing and low on the memory usage. So just in this one case alone, the positives for bubble sort are that it's simple to learn and uses little memory, but also requires a lot of time to run. Depending on the goal, the balances and trade offs one makes on sorting algorithms is dependent on |
When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.
Read Node.js, Require and Exports and Organize Your Code with RequireJS
module
?
-- A module is a part of an application that has a specific purpose. You can write an entire application in one module, or you can break a small application into many modules for better organization and readability.Step One: Watch Writing Testable JavaScript - Rebecca Murphey from Full Frontal 2012 (award for worst conference name ever?)
Step Two: Fork this gist.
Step Three: Consider the four responsibilities that Rebecca lists for client side code (hint: they're color coded).
Step One: Watch Mary Rose Cook Live Codes Space Invaders from Front-Trends. (The second worst conference name ever?)
Step Two: Fork this gist.
Step Three: Respond to this question in your fork: What is one approach you can take from this Mary's code and implement in your project? She codes like a storyteller. This approach is something that resonates with me because I think in stories, if you will, and being able to design an entire game step by step simple by telling the story is something I hope to incorporate into my code design from now on. Honestly, without this video, it would've been much harder for me to complete my Gametime project, which was also Space Invaders. This video was very helpful in my implementation.
Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.
I can explain the difference between function declarations and function expressions.
I can explain what the value of this
is in a normal function.
I can explain what the value of this
is when called from the context of an object.