Forum Replies Created
- AuthorPosts
- MD. Sakib KhanParticipant
As far I know, JavaScript does not support arrays with named indexes. only numbered index is valid.
Better if you use, “Object” or “Map” for named indexing.
MD. Sakib KhanParticipantAger problem er solution ki bujhechilen??? console.log() er maddhome row/col er value gulo print kore dekhben kindly.
let binary = row % 2 === 0 ? 0: 1
eta diye bujhacchi prottek row te kun digit diye shuru korbo. jor line number hole 0 diye shuru korbo.. bijor line number hole 1 diye shuru korbo…
binary = binary === 0 ? 1 : 0
etar maddhome alternate kortesi…. 010101 or 101010..MD. Sakib KhanParticipantHere is an updated link: https://discord.gg/rDxbJPtnrA
MD. Sakib KhanParticipantokay.
logic ta amon hobe..
number1 jodi, number2 theke ebong number3 theke choto hoy, tahole number1 sobcye choto
number1 < number2 && number1 < number3same goes for other two..
so, write code like this,if(number1 < number2 && number1 < number3) // number 1 choto
if(number2 < number1 && number2 < number3) // number 2 choto
if(number3 < number1 && number3 < number2) // number 3 chotoMD. Sakib KhanParticipantUsing conditional statement, apni simply ei kaj ta korte paren..
jodi -9 theke +9 er vitore thake tahole 1 digit.
jodi -99 theke +99 er vitore thake tahole 2 digit.. and so on….May 7, 2021 at 12:04 PM in reply to: Is the number positive/ negative or zero using switch case #164696MD. Sakib KhanParticipantHello bhai,
see this answer: https://stackoverflow.com/a/2312837/14313153
If you still don’t understand, let me know.Have you joined our discord server? Many students already asked this question there.
MD. Sakib KhanParticipantBhai, see this procedure. I hope you will understand.
MD. Sakib KhanParticipantPlease join and ask your questions here: https://discord.gg/XW8wNPzb
MD. Sakib KhanParticipantPlease join and ask your questions here: https://discord.gg/XW8wNPzb
MD. Sakib KhanParticipantAre you looking for scope in javascript?? I think so..
Helpful link: https://www.tutorialsteacher.com/javascript/scope-in-javascriptMD. Sakib KhanParticipantnah,
ekhane ashole checking ta evabe hocche, 10 === ‘>0’, 10 === ‘<0', 10 === '===0'(eta wrong way!)multiple conditions er khetre akta trickier way ache.. ami onno akta example er maddhome dekhai..
dhorun, apnar kache akti variable ache, "color".
switch...case er maddhome apni check korte chan color er value koto.. so evabe code ta korte paren..let color = 'red';
switch (color) {
case 'green': {
console.log('It is green!')
break;
}
case 'blue': {
console.log('It is blue!')
break;
}
case 'red': {
console.log('It is red!')
break;
}
}ekhane asole protibar ki check hocche?
color === 'green' (false)
color === 'blue' (false)
color === 'red' (true)
jeta true dibe, seta e print kortese..so ei jinish take amra ektu vinno vabeo likhte pari,
let color = 'red';
switch (true) {
case color === 'green': {
console.log('It is green!')
break;
}
case color === 'blue': {
console.log('It is blue!')
break;
}
case color === 'red': {
console.log('It is red!')
break;
}
}ekhane color === 'green' eta kintu akta expression, jeta boolean value dey. so ekhetre false. evabe baki gula o check hocche.
true === false
true === false
true === true [That's where red prints]Bujhle janaben and apnar problem ta ei way te solve korar try korben... na bujhleo janaben..
Discord e ki apni join korechen?? join kore thakle sekhane question gulo korben.. sobai upokrito hoyMD. Sakib KhanParticipantAlready told you in Discord. ^_^
MD. Sakib KhanParticipantHi Rayhan,
How are you? apnar question gulo ake ake uttor dicchi.First Question:
Rest/Spread Properties, Promise.prototype finally, trimStart,trimEnd, Promise.any() soho aro kichu next generation methods niye course e alochona kora hoyeche. and project gulote use kora hoyeche.
apni jodi proti ta part indetails e jante chan, tahole, apni MDN, w3schools, freecodecamp theke shikhe nite paren.
ei course ta ashole sob srenir manush er jonno (as well as beginner). ami akhn super advanced level er lecture add korle, beginner der sikhar agroho e chole jabe. Tai my suggestion: kichu documentation/article porun online theke. basic bujhe thakle apni segulo amni e bujhte parben. r na bujhle ami to achi e. ask korben. I will try to help.Second Question:
Ha. Thanks for notifying me. ami mongoDb er lecture toiri korchilam. etar kotha almost vule gesi. khub shigri add korar iccha ase.Thank you. Stay safe
MD. Sakib KhanParticipantMD. Sakib KhanParticipanteta onek karonei ashte pare.
maximum time ‘Bracket’ thik moto na deyar karone ashe.
tobuo code ta discord e share korun. - AuthorPosts