[x] 🥚 Predicting Truthiness: You can predict the truthiness of any primitive value.
[x] 🐣 Tracing Operators: You can use an operators trace table to evaluate expressions with more than one operator, and you can check your work with the [trace] button.
Language Features
[x] 🥚 Primitive Types: You can explain the difference between the 5 main primitive types (string, number, boolean, null, undefined) and what they are used for in a program.
[x] 🥚 typeof: You can predict the typeof operator's output for values from any of the 5 main primitive types.
[x] 🥚 Explicit Coercion: You can predict & check the outputs when using Boolean(), String() and Number() to convert between primitive types.
[x] 🥚 Truthiness Operators: You can explain how truthiness is used when evaluating &&, ||, ! and ? :.
[x] 🐣 Short-Circuiting: You can write an example that demonstrates how short-circuiting works with && and ||.
Implicit Coercion:
[x] 🐣 You can explain what implicit coercion is and how it can cause problems in your programs.
[x] 🐣 You can explain the rules for implicit coercion in common operators such as +, ! and >.
[x] 🐣 Comparisons: You can predict and check the result of any primitive comparison.
[x] 🐣 Template Literals: You can read and trace multi-line template literal strings.
[x] 🐥 Statements vs. Expressions: You can identify if a piece of code is a statement or an expression.
[x] 🐔 Arithmetic: You can use JavaScript to do math, and can explain or debug your expressions when they evaluate to something unexpected.
[x] 🥚 Event-Driven Programming: You can explain and discuss this programming paradigm in terms of the user interface, user interactions, and processing user input.
[x] 🐣 Entry Points: You can explain the concept of program entry points by describing which lines of code are executed when a program is loaded, and which lines of code are executed when a user takes an action.
[x] 🐣 Program Structure: You can understand and modify programs using the structure described in /02-just-enough-dom - imports, description, constants, state, DOM elements, interactions, initialization.
Language Features: You are comfortable reading, tracing, and completing programs that use ...
[x] 🥚 document.getElementById(''): You can access a single DOM element using it's unique ID attribute, and save it to a variable for use in your program.
[x] 🥚 checkbox.checked: You can read a boolean value from inputs with type="checkbox".
[x] 🥚 Number(numberInput.value): You can read a string value from inputs with type="number" and cast the value to type number in your program.
[x] 🥚 otherInput.value: You can read a string value from all other input types.
[x] 🥚 pre.innerText: You can display a formatted string in the DOM by assigning to a
element's .innerText property.
[x] 🐣 element.addEventListener('input'/'click', () => {}): You can define what code should be executed when a user interacts with a specific element. You do not need to completely understand this syntax or how functions work, it's enough if you can complete the exercises in this chapter. (You'll learn about functions later on, then it will all make sense.)
[x] 🥚 Imperative Programming: You can define the imperative programming paradigm and can explain how you know the programs in this chapter are imperative.
Writing Interactive Programs: For programs that take a string from users:
[x] 🥚 Blanks: You can complete a program by filling in the blanks.
[x] 🐣 Bugs: You can fix bugs in an otherwise complete program.
[x] 🐣 Goals: You can write the missing portion of a program.
[x] 🐔 Empty Page: You can develop a program with specific behavior starting from an empty page.
[x] 🐥 User Numbers: You can complete, debug and write programs that cast user input from string to number.
[x] 🐥 Stateful Programs: You can step through, debug and complete programs with an HTML/CSS interface that store user data in a variable between interactions.
Refactoring Control Flow:
[x] 🐥 Conditionals: You can refactor between truthiness operators and if/else statements.
[x] 🐥 Loops: You can either refactor between all loop types, or explain when it is not possible (or a good idea).
Language Features: You are comfortable reading and tracing programs that use ...
[x] 🥚 Block Scope: You can show how block scope works using code snippets and your browser's debugger.
[x] 🥚 Conditionals: You can predict and trace a program's path through conditional statements.
[x] 🥚 While Loops: You can predict and trace simple programs that use while loops.
[x] 🥚 for-of Strings: You can predict and trace simple programs that iterate through the characters of a string using for-of.
[x] 🥚 For Loops: You can explain how a for loops works by refactoring simple for loops into while loops.
[x] 🐣 Break: You can predict and trace simple programs that use break.
[x] 🐣 Continue: You can predict and trace simple programs that use continue.
[x] 🥚 Tracing: You can use the debugger to predict and check the execution of small programs that use functions. This includes:
[x] 🥚 Test Cases: You can explain a simple function's behavior using inputs & outputs.
[x] 🐣 Documenting Functions: You can write a JS Doc comment to describe a function's behavior, inputs and outputs.
Language Features:
[x] 🥚 ES6 Arrow Functions:
Defining a Function: You can show where a function is defined in a program.
Parameters: You can find a function's parameters in it's definition
Return Statement: You can find the return statements in a function's definition.
Calling a Function: You can show where a function called in a program
Arguments: You can show the arguments passed to a function call.
Return Value: You can show how a function's return value is used after the function call.
[x] 🥚 Default Parameters: You can explain how default parameters work, and how they help a developer read/understand a function definition.
[x] 🐣 The Callstack: You can explain and inspect the callstack using the browser's debugger.
[x] 🐥 Variables in Functions: You can explain three different ways a variable in a function can be declared/assigned, and can show this in the debugger:
Parameters: A parameter is assigned it's value when a function is called with arguments.
Local Variables: A variable declared in the function's curly braces.
Parent Scope Variables: A variable that was declared outside of the function but used inside the function (avoid this for now.)
[x] 🥚 Testing Environments: You understand that the conventional describe/it/expect.toEqual functions are defined by a testing library and made available as global variables in a testing environment. They are not part of JavaScript!
[x] 🥚 File Sub-Extensions: You can identify how a file is used by it sub-extension: file.__.js. Sub-extensions are a convention for developers and development tools. They do not change how JavaScript inside the file works.
[x] 🥚 Reading Tests: You can read unit tests to understand what a function is supposed to do.
[x] 🥚 Stepping Through Tests: You can step through unit tests in the debugger, stepping over the global testing functions and into the function you are testing.
[x] 🐣 Writing Tests: Given a working function, you can write passing unit tests to describe it's behavior.
[x] 🐣 Debugging Functions: Given working tests and a function with small mistakes, you can use the tests as a guide while debugging the function.
[x] 🐥 Passing Tests: Given working unit tests and an empty function, you can write code to pass the tests.
Language Features:
nothing new here!
[x] 🥚 Procedural Programming: You can define the procedural programming paradigm and can explain how you know the programs in this chapter are procedural.
[x] 🥚 Using Functions: You can use a pre-written functions in a program.
[x] 🐣 Writing Functions: You can write functions that are used in a program.
[x] 🐥 Refactoring Functions: You can refactor a function out of a program and test the function separately.
[x] 🐔 Reverse-Engineering: You can reverse-engineer an example program and refactor parts of your program into separate functions.
[x] 🥚 Reference vs. Value: You can explain how arrays are stored in memory and can demonstrate using examples run in JS Tutor.
[x] 🥚 Deep vs. Shallow Comparison: You can explain use the concept of reference vs. value to explain how a deep comparison is different than a shallow comparison.
Side-Effects: You can ...
[x] 🥚 Explain what side-effects are with an example.
[x] 🥚 Avoid side effects when writing your own functions.
[x] 🐣 Write tests to check if a function has side-effects.
[x] 🐣 Fix side-effects in buggy functions.
Integrating Arrays: You can work with programs that use arrays to store user data:
[x] 🥚 Call: You can call pre-written functions in a program:
[x] 🐣 Write: You can write functions that are used in a pre-written program.
[x] 🐣 Refactor: You can refactor logic from a program into a separate function. You can avoid side-effects and test your function.
[x] 🐔 Reverse-Engineer: You can reverse-engineer a program, refactoring logic to a separate function if necessary.
[x] 🐥 Stateful Programs: You can step through, debug and complete programs with an HTML/CSS interface that store user data in an array between interactions.
Language Features: You are comfortable reading and tracing programs that use ...
[x] 🥚 Array Literals: You can create a new array in your program with initial values using the array literal syntax: const arr = ['items'];
[x] 🥚 Adding and Removing Items: You can use these methods to add and remove items in an array:
arr.push(): Adds a new item to the end of an array.
arr.pop(): Removes the last item in an array.
arr.shift(): Removes the first item in an array.
arr.unshift(): Adds a new item to the front of an array.
[x] 🥚 Reading Items: You can read items in an array using:
arr[i]: Access a specific item in an array using square brackets a positive index.
arr.at(i): Access a specific item in an array using .at() and a positive or negative index.
[x] 🥚 Updating Items: You can update any item in an array using it's index, square brackets and assignments: arr[4] = 'hello'.
[x] 🥚 Iterating Over Arrays:
for (const item of arr): You use for-of loops to iterate forwards through an array.
for (let i = ...): You can use for loops to iterate forwards and backwards through an array.
[x] 🥚 Array.isArray(): You can use Array.isArray() to check if something is an array: Array.isArray(something)
[x] 🥚 Spread Syntax: you can use spread syntax to create a shallow copy of an array: const shallowCopy = [...arr];
[x] 🥚 Declarative Programming: You can define the declarative programming paradigm and can explain how you know that code using functional array methods is declarative.
[x] 🥚 Array Strategies: You can explain these array strategies using a diagram or drawing:
Mapping: Modifying each item in an array and putting the results in a new array.
Filtering: Creating a new array with only the items from the old array that match some criteria.
Every Item: Checking if every item in an array matches some criteria.
Some Items: Checking if at least one item in an array matches some criteria.
Finding: Finding the first item in an array that matches some criteria.
Reducing: Combining all the items in an array to create a single result.
[x] 🐣 Using Callbacks: You can explain what a callback is, and can ...
Pass a callback into a higher-order function that consumes it.
Write a callback for a higher-order function to consume.
Consume callbacks in a higher-order function that you write.
Decide when to declare callbacks inline, and when to declare them separately.
[x] 🐣 Debugging Functional Array Methods: You can step through code that uses functional array methods in your debugger, and can use the scopes panel to explain what is happening behind the scenes.
Language Features:
Array Methods: You can read and trace code that uses these array methods, you can also use them to solve simple coding challenges:
[x] 🥚 [].every
[x] 🥚 [].some
[x] 🐣 [].map
[x] 🐣 [].filter
[x] 🐣 [].find
[x] 🐥 [].reduce
[x] 🐣 Higher-Order Functions: You can explain what a higher order function is using a simple example.
[x] 🐥 Implicit Returns: You understand when a function can be written with an implicit return and can decide if it makes your code more or less readable.
[x] 🥚 Avoiding Side Effects: You can read, debug and write functions that use objects as arguments, without creating side-effects.
[x] 🐣 Stateful Programs: You can step through, debug and complete programs with an HTML/CSS interface that store user data in an object between interactions.
Language Features:
[x] 🥚 Object Literals: You can declare a new object with initial key/value pairs using object literal syntax: const obj = { a: 1, b: 2 };.
[x] 🐣 Dots vs. Brackets: You can explain the difference between dot and bracket access in an object and can decide which one is best in your code.
[x] 🐣 Reference vs. Values: You can show that objects are stored by reference with an example that modifies one object from two variables.Learning Objectives
Me
What was not clear, where did you get stuck?
In some cases I have had difficulty understanding the questions, not understanding the question well, it is difficult for me to give the answer
What was clear, what did you master?
The syntax
Where can you still use some help?
Logic, I need to practice
Where can you help others moving forwards?
I have bought and downloaded books online, as well as interesting places to study, some I can share.
The Course
What can there be more of?
Approach to programming logic, creation of algorithms. I think it is the fundamental basis, regardless of the language to use
What can there be less of?
I dont have nothing to complaint about
What material were most helpful (from HYF or elsewhere)?
It has been more difficult for me to follow the HYF material, I have chosen to combine it with reading and other video courses
What HYF material was least helpful?
I dont have nothing to complaint about
Any suggestions for future classes?
At the moment I can't think of any, since the face-to-face time is very short, I complement it by following the videos of the other group or from previous years
1. Primitives and Operators
Skills:
2. Just Enough DOM
Skills:
3. Control Flow
Skills:
Refactoring Control Flow:
Language Features: You are comfortable reading and tracing programs that use ...
4. Functions
Skills:
Language Features:
5. Unit Testing
Skills:
6. ES Modules
Skills:
Language Features:
7. Using Functions
Skills:
Language Features:
Nothing new here!
8. Arrays
Skills:
Language Features: You are comfortable reading and tracing programs that use ...
9. Functional Array Methods
Skills:
Language Features:
Array Methods: You can read and trace code that uses these array methods, you can also use them to solve simple coding challenges:
10. Multiple Interactions
Skills:
Language Features:
Me
What was not clear, where did you get stuck?
In some cases I have had difficulty understanding the questions, not understanding the question well, it is difficult for me to give the answer
What was clear, what did you master?
The syntax
Where can you still use some help?
Logic, I need to practice
Where can you help others moving forwards?
I have bought and downloaded books online, as well as interesting places to study, some I can share.
The Course
What can there be more of?
Approach to programming logic, creation of algorithms. I think it is the fundamental basis, regardless of the language to use
What can there be less of?
I dont have nothing to complaint about
What material were most helpful (from HYF or elsewhere)?
It has been more difficult for me to follow the HYF material, I have chosen to combine it with reading and other video courses
What HYF material was least helpful?
I dont have nothing to complaint about
Any suggestions for future classes?
At the moment I can't think of any, since the face-to-face time is very short, I complement it by following the videos of the other group or from previous years
---- END RETRO TEMPLATE ---->