Open FennyWilriani opened 2 years ago
Continue the exercise and reading for the next materials.
Continue on the exercise that i haven't been able to finish as i most of the times distracted to learn on create/copy simple JS code from different topics 😅
- Understanding the difference between shallow comparison and deep comparison.
- Learning pure functions & side effects
- Learning JS iterators, and trying to practice on higher order functions & arrays
sounds like you are doing great!! well done
Good morning coaches, I need help with an explanation to refresh my memories on what can be the cause for the failure of the lint ls
and test
on npm check? 😁
Understanding the concept/theory of JS modules.
The application on our current exercise.
I've been able to make several functions on the exercise of add, remove, find average, and find sum work, yet it not goes based on the rules set by Evan as it keeps showing a warning I'm not using list items
or average
- for example.
I'm pretty ambitious to finish the exercise by the set rules 😅
I need help with an explanation to refresh my memories on what can be the cause for the failure of the
lint ls
andtest
on npm check?
well to answer that, we would need to know what the error message is 🙂 try to read and understand it. the ls-lint is checking file and directory names..so probably some mistake there..the other test probably fails because you do not have all the functions written yet..but this is just a guess..read what the message is, it is usually very helpful.
yet it not goes based on the rules set by Evan as it keeps showing a warning I'm not using
list items
oraverage
- for example.
would be nice to know which repo, which branch, which file you are talking about :)
I'm pretty ambitious to finish the exercise by the set rules 😅
try to think of them as good practices, not rules :)
The End Of The Module Inside JS
I have no issue in understanding a simple JS code that people write for simple solutions/functions, yet writing my own code I find it quite challenging. I need more time, and practice to achieve better results.
In writing my own syntax/code. I'm a slow learner in this matter.
Week 4
Besides continuing the exercise from last week, I will checkin' out the module for this Sunday.
how much time each day can you dedicate to practice and study?
Hi Daniel, since I don't have my Dutch course anymore, I usually dedicated my time to HYF study/creating Figma project for 5+ hours a day. To be honest, I'm not really fond of JS module, as im not really bright in writing JS function, but it is something that i found necessary to learn, and need repetition of practice in order to get more familiar with it 🤓
hi Fenny, yes, JavaScript is at the core at everything in web development, so even if these modules are difficult, they are super necessary. It this keeps being too hard for you, maybe it is worth considering a related field in the sector, maybe UX research or project management.
Thank you for the advice Daniel 😀 .. I do actually thinking to pursue more knowledge in that sector. Yet for now I'm still liking the challenge from each module. As for JS, although I found it difficult, yet it is still doable as I still can find the solution for every exercises we have.
Inside JS
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 };
.