10 Beginner(ish) JavaScript Code Challenges #fullstackroadmap (Ep. 6.9)

preview_player
Показать описание
This is part of my Frontend Web Development Course for Beginners. Learn the basics of HTML, CSS, and JavaScript to build a solid foundation for web development.

You can find resources and other information for this video at the Full Stack Foundations link below:

-------------------------------------------------------------------------------------

Connect with me:

-------------------------------------------------------------------------------------

Timestamps:

0:00 Intro
1:59 Challenge #1
9:20 Challenge #2
24:34 Challenge #3
34:52 Challenge #4
40:55 Challenge #5
53:28 Challenge #6
59:36 Challenge #7
1:02:48 Challenge #8
1:07:48 Challenge #9
1:15:34 Challenge #10
Рекомендации по теме
Комментарии
Автор

The second challenge isn't though at all. It's just that your solution was super convoluted.

This is the solution I came up with:

function arrayDiff(a, b) {
if (a.length === 0 || b.length === 0) return a
let result = a
b.forEach((itemB) => result = result.filter((itemA)=> itemA !== itemB))
return result
}

And then after submitting I found one even simpler:

function array_diff(a, b) {
return a.filter(e => !b.includes(e));
}

henriqueb
Автор

The term Kyu, Kata and others is due to Judo (Kano Jigoro) then spread to all martial arts, Jujutsu the mother art then Judo variants like the one with bastardized spelling Juijitsu ( which might mean girl truth) and Karate. The term kyu is synonomous with a belt, when I studied Jujutsu (flexible/soft art) the correct term, when I was a white belt, I was 7th Kyu, then a yellow belt 6th kyu and so on, the higher the number for Kyu the lower the belt, once you the pass the Kyu stages you reach black belt or Shodan and continues upward. In most forms of Matial arts there are set movements chained together that you kust know to pass that Kyu or belt. In karate these are long sequences to teach something important, or, in Jujutsu these are a are series of techinques which must be known and demonstrated before moving onto the next kyu, the testing stage is called a grading. You pass the grading you move down the Kyu and a new belt.

vaughanmacegan
Автор

thank u for get me out of stuck "Take a Ten Minute" kata, u simplize it, it simpler than i mess it up

antquacking
Автор

this video is so useful for me! learned a lot, thanks

magdasokolovic
Автор

Thank you very much. I wish you have more videos and playlists like for React, Bootstrap, SQL, APIs, Node etc.

TechyMechie
Автор

hi thank you for this video for the first challenge I think its because the arrays that they are testing have no negative numbers so their codes works just fine

basharchehade
Автор

awesome sir, kindly finish the JS course it is a humble request

hamaaritech
Автор

Thanks for the video, it's so useful

rocramos
Автор

Those were hard but I learned a lot.
50:50 line 8. I am confused why you can use the reduce method without turning the string(!)-items in the array into integers.

slammerton
Автор

The filter() that you taught in previous videos had nothing to do with removing elements but creating a new array in which the element that passed the condtion(s) were put into, which I why I had no idea what to do - nothing about deleting elements of the array. I went through all my notes carefully nothing there about deleting array objects. An example with that would've probably helped with finding a solution. Which is why after seeing the solution my mind is still struggling to see the answer. Did try using typeof though so that is something. And judging by the wording of the kata it said that the list/array was not getting any non-negative numbers, you didn't need to check for it. Very disappointed

vaughanmacegan