Bhaiya Ji pehle baar mein hi crystal clear ho gaya. Hawa hawa mein nhi. Pen and paper leke practice kiya along with using debugger......reduce( ) bhi poore acche tareeke se clear ho gaya bhaiya. Bss ab kal subah wapas se poore video ko revise karunga badiyaan se!!!
ager ye itana he thaa to mujhe 1 he baar may samj gaya bcz of ur explaination tip : jisko nahi samjha ho vo 3-5 q practice karo yaa fir 1 baar dhyan say deko fir aur practice kar te vakt observ karo samj aa jayega I started this playlist This is day 5 I know basics of javascript so I will binge watch basic part and if I found any topic which I don't know then I will try that topic
19 :00 //qn----aise name find kro jisme a include hai const day= ["sunday","monday","tuesday","wednesday"]; const chekdaylatter= day.filter((data)=>{ return data.includes("u"); }) console.log(chekdaylatter);
Hi sir. In forEach video u said by using map if u retun anything it will return as array but in this video u see even if u use return keyword in capitalMonths variabke y in console return values r not printinng. Pls clarify this
If you are running your code using VS Code and Live Server then return values will not be printed until you explicitly print them using console.log(). However if you directly run the same code in the browser's console all the return value will be printed automatically. This is how JavaScript works.
Sir i didnt find reduce method interesting w me can add all the element by using simple loop .i think it was complicated guys how did u find this method?is it good?
sir app padate to hai but ye kya hai use kya hai kiska part hai ye nhi batate hai jo or dusre log bahut ache se explain krte hai app bhi agr batate to sayad content bahut acha rhta
Main pagal o ki terah 2 conditions likh raha tha months mein jiske andar m ho.😂😂 const filteredMonthsContainsM = months.filter( (month) => month.includes("M") || month.includes("m") ); console.log("filteredMonthsContainsM", filteredMonthsContainsM);
Bhaiya Ji pehle baar mein hi crystal clear ho gaya. Hawa hawa mein nhi. Pen and paper leke practice kiya along with using debugger......reduce( ) bhi poore acche tareeke se clear ho gaya bhaiya. Bss ab kal subah wapas se poore video ko revise karunga badiyaan se!!!
Bahot sahi, aise hi padhte raho 👍
@@procodrr Bilkul bhaiya🙏🏻
19:51 ye rha assignment ka solution:
const filterMonths = months.filter(elem => {
for(let i=0; i {
return elem.includes('m') || elem.includes('M');
});
console.log(filterMonths);
OUTPUT:
[
"March",
"May",
"December"
]
my method - const filteredMonths = () =>
months.filter((month) => month.toLowerCase().includes("m"));
console.log(filteredMonths());
Try to reduce your code it's too lengthy
@@trainerdevesh see carefully there are 2 code and of only 4 lines
@@mdfurquanalam786 sorry' bruh I reply on wrong comments
your first solution is wrong, it returns an empty array,
ager ye itana he thaa to mujhe 1 he baar may samj gaya bcz of ur explaination
tip : jisko nahi samjha ho vo 3-5 q practice karo yaa fir 1 baar dhyan say deko fir aur practice kar te vakt observ karo samj aa jayega
I started this playlist This is day 5 I know basics of javascript so I will binge watch basic part and if I found any topic which I don't know then I will try that topic
Best playlist 👍hope your channel cross millions of subscribers.
Thanks Aishwarya, keep learning and sharing 😊
Day 19: video 43 completed ....thank you sir making such great Video 😊....
24 video left for first project... excitement is on the peak 🎉🎉
Awesome, keep learning and growing 😊
Well explained bro 🥰🥰 you deserve more subscribers 😍😍😍.
From pakistan🤩🤩🤩
kaafiron se mat seekho alla taala naaraaj ho jayega . shirk hai ye
18:49
const filteredMonths = months.filter((month, index) => {
console.log(index+1, month);
return month.length >= 5;
});
console.log(filteredMonths);
18:59 ===>>>>>>>>>
const filteredMonths = months.filter((month, index)=>{
return month.length >= 5
})
console.log(filteredMonths); => [
"january",
"february",
"march",
"april"
]
sir awsome teaching sab samajaaya ek hi bar main thanks sir
Awesome, keep learning and sharing 😊
Pure youtube pe aapke jaisa koi hai hi nahi sir❤ mast
Thank you sir, U are great teacher🙏
1:00:47, 24 panche= pata nahi. 😂. But thank you bhaiya ❤❤
Sir Great Lecture 😊
Thanks bro 😊
good explained sir😍
very well explained bro, Eagerly waiting for your React Js series.
Thanks Bro 😊,
React series will come by mid February.
sir osm wow 😍😍😍😍😍
Explained really well..💯
Thanks bro 😊
bhaiya cotnet next level ha bahut maza ata ha
SUGGESTION- BHAIYA BPLEASE THODA SA AUDIO QUALITY ACHA KAR DIJIYA
19:20
const months = ["January" , "February" , "march" , "april" , "may"];
const fMonths = months.filter((month)=>{
console.log(month);
return month.length >= 5
});
console.log(fMonths);
19 :00 //qn----aise name find kro jisme a include hai
const day= ["sunday","monday","tuesday","wednesday"];
const chekdaylatter= day.filter((data)=>{
return data.includes("u");
})
console.log(chekdaylatter);
but return data.includes me u q likha hai jb find a wale krne hn
@@BeaLearner-b9pmistake brother aap u ke place pr a likh skte hai
Very well Explained
After two months I'm watching the reduce method again for making a project
The telegram group link is not opening.
Hi sir. In forEach video u said by using map if u retun anything it will return as array but in this video u see even if u use return keyword in capitalMonths variabke y in console return values r not printinng. Pls clarify this
If you are running your code using VS Code and Live Server then return values will not be printed until you explicitly print them using console.log(). However if you directly run the same code in the browser's console all the return value will be printed automatically. This is how JavaScript works.
At 21:44
for lower case ....
toLowerCase()
or
toLocaleLowerCase()
Which is right ?
const month = [jan--may]
const filteredMonth = month.filter((month=>{
console.log(month)
return month.includes( 'M' || 'm')
})
Output : March and may
Hi @trainerdevesh, did you ran it on console ?
@@Jha_adarsh yes it's ran correctly
@@Jha_adarsh actually there is bugs in this comment but my logic is right
@@trainerdevesh cool
Lecture 43 Completed.
37:10
return student.startsWith('A');
bhaiya includes ke jagah yeh bhi chalega na yahan prr ???
Haa, ye kewal starting wale characters ko check karega.
@@procodrr ji bhaiya
it is very sad you dont have uploaded video of polyfill s of map reduve and filter mehod ,what we expect it coming or not
Sir i didnt find reduce method interesting w me can add all the element by using simple loop .i think it was complicated guys how did u find this method?is it good?
assignment :
---------------------
const arr = ["cat", "dog", "rat", "mouse"];
const myNewArr = arr.filter((element, index) => {
if (!element.includes("t")) {
return true;
}
});
console.log(myNewArr);
Second Approach :
-------------------------------
const arr = ["cat", "dog", "rat", "mouse"];
const myNewArr = arr.filter((element, index) => {
return !element.includes("t");
});
console.log(myNewArr);
Sir kasay pata chalaa gaa ka yehper foreach kaa use karnii haai our yehper map kaa.. please guide me❤
i have a doubt ki hum toh issme if and else if ka bhi toh use kr sakte the na?? toh filter hi kyun kra?????
Assignment :
---------------------
const students = [
{
name: "Anthony",
age: 23,
},
{
name: "Amar",
age: 23,
},
{
name: "Akbar",
age: 18,
},
];
const myNewArr = students.filter((element, index) => {
return element.age > 18;
});
console.log(myNewArr)
sir mujhe smjh m toh aata he par bhul jata hu and sir andsir jo 19:51 pe assigment que. tha use me nhi kar paya 😣sir me nhi sikhg paunga kya
bhai tension mat lo first time main hota hai aisa but practice karne se sab samajh aa jayega dont worry keep just keep practicing .
0:00 sirka haatka mehendi utar gaya hai.( I dont know what that is but my best assumption is that's a mehendi.)
Kya samjhana chahte ho wahi ek loop ban jata hai 😂
can we set month.includes('m' || 'M')
♥
present sir
Sir maine thoda jayda hi kar liya pehle map use karke lowercase kiya then filter mein include use kiya 😂😂
sir app padate to hai but ye kya hai use kya hai kiska part hai ye nhi batate hai jo or dusre log bahut ache se explain krte hai app bhi agr batate to sayad content bahut acha rhta
aap nhi hote toh hum na hote mst smjhaya baaki sb toh bss angrji k tote bne bethe hai hindi jindabad
sahi me bhai har koi cool banne me laga hai ajkal par padha koi nahi raha anuragh bhai badiya hindi me samjhata hai
Day5
reduce smj hi nhi aaya bhaiya
Sach bolun to lecture acha hai hrr topic touch karte ho aap,pr samjh m nahi ata kyoki aap khud confusion m rahte ho pata nahi kya samjhana chahte ho
Bro or koi baat nhi sir per Rohit Sharma ka aser hai kuch but kuch kaho sir achha padhatay hai😊
reduce ( id did it like this ):
-------------
const arr = ["cat", "dog", "rat", "mouse"];
const myNewArr = arr.reduce(
(accumulator, currentValue, currentIndex, array) => {
return accumulator + currentValue;
}
);
console.log(myNewArr); // output : - "catdogratmouse"
reduce explain ap ny achy sy kiya lakin confusing tha bht sahi sy teach nahi ker paye
day10
Main pagal o ki terah 2 conditions likh raha tha months mein jiske andar m ho.😂😂
const filteredMonthsContainsM = months.filter(
(month) => month.includes("M") || month.includes("m")
);
console.log("filteredMonthsContainsM", filteredMonthsContainsM);
const months = [ 'January','february','march','april','may' ]
const capital=months.filter((month) =>{
// console.log();
return month.length >= 5
} )
month = ["jan", "March", "Karna", "tanu", "amnu"]
const filteredMonths = month.filter((month)=>{
for (let i= 0; i{
return month.toLowerCase().includes('m')
})
console.log(result)
const filtermethod = months.filter((month,index) => {
// console.log(month);
return month.match('m');
})
const newVariable1 = fruits.filter((fruit) => {
console.log(fruit.includes("M") || fruit.includes("P"));
return (fruit.includes("M") || fruit.includes("P") ) && fruit.length > 4;
}
)
console.log(newVariable1);