ChatCrawlersearch across public Telegram Open the app
W

Web Development Bootcamp

16 April 2023
2023-04-16×
16 April 2023
Wo keh rha hai 2 parameters
Web Development Bootcamp
Ye 2 parameters kisliye bol raha hai results is an array ...right ?
Ana toh correct chahiye bro.... Ye galat kyu aa rha hai
Return P1 > P2 ? P1 : P2;
I
console.log statememt
Web Development Bootcamp
Accha
W
Inko print chahiye tha///
iska mtlb kya ye code sirf loops and end output ke basis par test hota hai ?
S
like even if u wrote proper logic still test cases failed
Web Development Bootcamp
Agar tum Return 5 karwa doge toh
W
Usme koi esa test case hoga jisme 5 ana chahiye wo wala pass ho jayega
W
Web Development Bootcamp
Shubhamok
Isliye toh test cases chupe hue hote hain Warna test case visible ho jayenge toh sab output pata chal jayenge
S
toa agar hum sahi se test cases and output samaj jaye toa code clear karwa sakte shayad ? 🤔
Web Development Bootcamp
Lekin kayi jagha par random test cases run hote hain mtlb shuffle hokar ... Toh waha agar pata chal bhi jaye toh bhi ni kuch kar sakte
I
I think overall sub kuch apne ko aana chahiye tub jake kuch questions hilte hai 🤔
Bas ye ki tum kya input de rhe ho or kya output aa rha hai or expected output kya h
A
Фотография
click to show
D
[javascript] function updateInfo(e) { const info = document.getElementById("info"); const textOfCard = (i) => { const text = [...e.target.closest("div.card").children][i].textContent; return text; }; const textOfInfo = (i, text) => { [...info.children][i].children[1].textContent = text; }; for (let i = 0; i <= 4; i++) { let j = i + 2; if (j >= 5) j++; const cardText = textOfCard(j); textOfInfo(i, cardText); } } yeh function "card" ki details extract krke "info Tab" me update kr deta hai. card ki jo details hai vo ek library named object array me bhi stored hai. now I cant figure out ki har card ko apne movie object se kese link karu (incredibly hard to add new features using this method) Things i am not able to implement through this changing the library array's objects property har jagah reflect ho jaye, pura function html order par tika hai so there's that ;-; i hope question dhang se smjaya hai mene lol. here's the github repo
I
Got opening information nothing else
alag alag rakho na sab functions ko ...
function k andar. ...
ye kisne sikhaya ese bnana ?
W
Web Development Bootcamp
DarshanGalat kese, kya dikkat hai isme.
Apko pata h kayi log kehte Hain ki it is not good practice to do in this way Code chal rha hota h alag tareeko se bhi Lekin wo tareeke sahi nahi hote Toh thoda easy banao jisse thoda easily samjh aye Sab Functions ko alag alag rakho Callback function banakar pass kardo Or ese scope k sath chedkani ni karo block banakar
Solution batao na vese agar smj aa rha hai to
W
Job se pehle balki use nahi karna chahiye zada iska
R
wow for toh humere jarurat hee nhi hai
W
Web Development Bootcamp
Job k baad toh chalo sahi h kuch na aye toh dekhlo kyuki waha batane Wale log Kam hote hain
kar diya solve much cleaner now. ab bas edit ka feature add krna hai function getMovieObjectWithCardIndex(card) { let index = card.dataset.index; return library[index]; } function updateInfo(e, card) { const info = document.getElementById("info"); const movie = getMovieObjectWithCardIndex(card); const textOfInfo = (i, text) => { [...info.children][i].children[1].textContent = text; }; for (let i = 0; i <= 4; i++) { const cardText = Object.values(movie)[i]; textOfInfo(i, cardText); } }
A
Can anyone send latest updated course of complete 2023 web development by angela yu It has 47 sections and 465 lecture Last updated on April 2023 Please!!!!
Calendar: April 2023
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog