for search you can use .filter (const ages = [32, 33, 16, 40]; const result = ages.filter(checkAdult); function checkAdult(age) { return age >= 18; }) and for delete you can use .splice (const fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.splice(2, 0, "Lemon", "Kiwi");)
the best thing of these libraries is that we gain back the interactivity because we are back in JS, no need to compile TS/JSX
Very clear tutorial of the basics, thanks.
Wow I'm so legit amazed by this. I am floored. Ill be offering this service to my freelance portfolio.
Awesome , thu' I was waiting for how to search and delete items in the list lol.
for search you can use .filter (const ages = [32, 33, 16, 40];
const result = ages.filter(checkAdult);
function checkAdult(age) {
return age >= 18;
})
and for delete you can use .splice (const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.splice(2, 0, "Lemon", "Kiwi");)
Only thing that throws me off is having empty values between tags lol. Too bad HTML requires closing tags unlike jsx that can have a self closing tag.
True, but if it was self closing then you would confuse it to be a JSX component. This way you know it is vanilla HTML.
1st and no... I'll stick with html and nothing more. That’s correct, no css nor Javascript.
lol, what are you talking about> 🤣🤣🤣🤣
@@RootsterAnon I was kidding lol. My jokes are beyond human comprehension.
@@KevinArellano you don't understand how relieved I am right now. You got me there... I confess... :D