filmov
tv
JavaScript for Beginners #57 Coding Challenge 10

Показать описание
Here, we will look at another coding challenge. This coding challenge will involve the splice() array method, the slice() array method, and the forEach array method.
Coding Challenge:
//We will be given some arrays that hold the food dislikes for various people. We will also be given an array that holds all available food.
//Create a function that returns a list of foods that no one in the group objects to eating.
//Your function should not modify the original list of all available foods.
//Create a simple menu based on the list.
//Test Data 1:
const jennifer = ["Tacos", "Hamburgers", "Meatballs"];
const max = ["Tuna", "Veal", "Chicken"];
const menuItems = ["Eggrolls", "Chips with Salsa", "Pork Dippers", "Meatballs", "Tacos", "Salad", "Hamburgers", "Tuna", "Veal", "Pizza", "Chicken", "Fried Rice", "Pasta"];
//Test Data 2:
const ben = ["Eggrolls", "Salad", "Fried Rice"];
0:00 Instructions for the code challenge
1:55 Setting up a search and remove function
4:52 Setting up a function to get our updated foods list
7:28 Testing our function
9:15 Building a menu with forEach()
JavaScript Playlist:
MDN slice():
MDN splice():
MDN forEach():
MDN indexOf():
Coding Challenge:
//We will be given some arrays that hold the food dislikes for various people. We will also be given an array that holds all available food.
//Create a function that returns a list of foods that no one in the group objects to eating.
//Your function should not modify the original list of all available foods.
//Create a simple menu based on the list.
//Test Data 1:
const jennifer = ["Tacos", "Hamburgers", "Meatballs"];
const max = ["Tuna", "Veal", "Chicken"];
const menuItems = ["Eggrolls", "Chips with Salsa", "Pork Dippers", "Meatballs", "Tacos", "Salad", "Hamburgers", "Tuna", "Veal", "Pizza", "Chicken", "Fried Rice", "Pasta"];
//Test Data 2:
const ben = ["Eggrolls", "Salad", "Fried Rice"];
0:00 Instructions for the code challenge
1:55 Setting up a search and remove function
4:52 Setting up a function to get our updated foods list
7:28 Testing our function
9:15 Building a menu with forEach()
JavaScript Playlist:
MDN slice():
MDN splice():
MDN forEach():
MDN indexOf():
JavaScript for Beginners #57 Coding Challenge 10
The Odin Project VLOG | Day 57 CODING For BEGINNERS | Foundations JavaScript Fundamentals Part 5b
Learn JavaScript - Full Course for Beginners
JavaScript Programming Tutorial 57 - Memoization and Algorithm Optimization
JavaScript in 100 Seconds
JavaScript Crash Course - Tutorial for Complete Beginners
JavaScript Basics in 10 Minutes
🔴 Overview • Player Feature • JavaScript Programming • JavaScript Tutorial • Learn JS • (Pt. 57)...
Javascript promises
JavaScript Programming - Full Course
JavaScript Tutorial: Events & Listening to Events | Web Development Tutorials #57
JavaScript tutorial 1/24: Introduction to coding | Coding for beginners
JavaScript Full Course for Beginners | Complete All-in-One Tutorial | 8 Hours
JavaScript Course for Beginners 2020 - Learn JavaScript from Scratch!
FREE JavaScript Programming ( Full Course ) Beginner to Advance
7 Projects You Can Do With JavaScript | Subscribe Coding 57 for more... #shorts #shortsvideo
Object-oriented Programming in JavaScript: Made Super Simple | Mosh
5 Beginner JavaScript Coding Challenges #fullstackroadmap (Ep. 4.4)
How To Code JavaScript Q#57, Try Solve & Guess The Output #shorts #coding #programming #javascri...
JavaScript Tutorial for Beginners | Learn Functional Programming with JavaScript ES6+
JavaScript Full Course | JavaScript Tutorial For Beginners | JavaScript Training | Edureka
JavaScript in 8 Minutes 👩💻
JavaScript Game Development Course for Beginners
JavaScript Interview | Is it possible to break JavaScript Code into several lines? #shorts #short
Комментарии