Open EliasMlopez99 opened 2 years ago
i would like to thank your consideration for reviewing my comments and doing the feedback. My apologies
At the beginning , i was so frustrating trying to understand how a function work and what does it do, and translating that into text, however using the tools already seen to trace the codification and using the breakouts i managed to understand and translate that into comments. Also i understood what functions are and how do they work
🚀 it's really hard to understand and explain what a function does! We introduce this early so you'll have lots of time to practice before working in group projects. Happy to hear the skills you studied before are helping : )
- Everything is solved when i do it myself trying and failing is the key of success
indeed, this is very much true!!
i really want to thank you for your efforts and feedback beforehand, i really wish that nevertheless we arrive to finish the exercises a quick review of them would be appreciated.
- it display both 'your-output' 'expected output'
that is the correct behaviour! it actually means that you successfully solved the challenge and your code outputs the same result as the expectation is :)
i would really like the refactoring process to be explained, i read the concepts and also search information by myself but i don't feel it enough.
What has me a bit confused right now is the refactor logic, as the previous class i would appreciate that one of the coaches explain the exercises nevertheless i arrive to finish them or not
A quick review of what we have seen so far, plus the prep work for sunday
i would appreciate that one of the coaches explain the exercises nevertheless i arrive to finish them or not
then please ask for it on Discord :)
What has me a bit confused right now is the refactor logic,
refactoring simply means rewriting the code in a way that it works exactly the same (same input gives same output), just hopefully in a better, more efficient way. in our case, the task is to use the reverse() function instead of the current solution in the exercise.
in the upcoming module we will look at examples where the same result is achieved in many different ways.
Learning Objectives
Priorities: 🥚, 🐣, 🐥, 🐔 (click to learn more)
There is a lot to learn in this repository. If you can't master all the material at once, that's expected! Anything you don't master now will always be waiting for you to review when you need it. These 4 emoji's will help you prioritize your study time and to measure your progress: - 🥚: Understanding this material is required, it covers the base skills you'll need to move on. You do not need to finish all of them but should feel comfortable that you could with enough time. - 🐣: You have started all of these exercises and feel you could complete them all if you just had more time. It may not be easy for you but with effort you can make it through. - 🐥: You have studied the examples and started some exercises if you had time. You should have a big-picture understanding of these concepts/skills, but may not be confident completing the exercises. - 🐔: These concepts or skills are not necessary but are related to this module. If you are finished with 🥚, 🐣 and 🐥 you can use the 🐔 exercises to push yourself without getting distracted from the module's main objectives. ---
0. Asserting
let
vs.const
: You can explain the differences betweenlet
andconst
including: uninitialized declarations and reassignment. You can determine when a variable can be assigned withconst
in a program.===
and!==
operators compare strings, and can predict the result of any string comparison.console.log
: You can useconsole.log
to create program traces in the console, and to print other helpful info for developers.console.assert
: You can use theconsole.assert
for assertion testing, and can write a helpful message assertion message.1. Primitives and Operators
typeof
: You can predict thetypeof
operator's output for values from any of the 5 main primitive types.Boolean()
,String()
andNumber()
to convert between primitive types.&&
,||
,!
and? :
.&&
and||
.+
,!
and>
.2. Control Flow
if
/else
statements.while
loops.for-of
Strings: You can predict and trace simple programs that iterate through the characters of a string usingfor-of
.for
loops works by refactoring simplefor
loops intowhile
loops.break
.continue
.3. Functions
5. Unit Testing
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!file.__.js
. Sub-extensions are a convention for developers and development tools. They do not change how JavaScript inside the file works.6. ES Modules
?deps
lens to visualize the dependencies in a folder.'use strict'
!export const _ = () => {};
import { _ } from './path/to/file.js';
6. Using Functions
7. Arrays
const arr = ['items'];
.at()
and a positive or negative index.arr[4] = 'hello'
.Array.isArray(something)
const shallowCopy = [...arr];
8. Functional Array Methods
[].every
[].some
[].map
[].filter
[].find
[].reduce
9. Objects
const obj = { a: 1, b: 2 };
.