MD. Sakib Khan

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 84 total)
  • Author
    Posts
  • in reply to: Associative Arrays in Javascript #186996
    User AvatarMD. Sakib Khan
    Participant

    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.

    in reply to: Assignment (LOOP) #181924
    User AvatarMD. Sakib Khan
    Participant

    Ager 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..

    in reply to: positive and negative number by Switch Case #177527
    User AvatarMD. Sakib Khan
    Participant

    Here is an updated link: https://discord.gg/rDxbJPtnrA

    in reply to: positive and negative number by Switch Case #177524
    User AvatarMD. Sakib Khan
    Participant

    okay.
    logic ta amon hobe..
    number1 jodi, number2 theke ebong number3 theke choto hoy, tahole number1 sobcye choto
    number1 < number2 && number1 < number3

    same 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 choto

    in reply to: check how many digit in a number #167625
    User AvatarMD. Sakib Khan
    Participant

    Using 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….

    User AvatarMD. Sakib Khan
    Participant

    Hello 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.

    in reply to: JavaScript Switch case #163945
    User AvatarMD. Sakib Khan
    Participant

    positive and negative number by Switch Case

    Bhai, see this procedure. I hope you will understand.

    in reply to: automatically global variable in javascript #160674
    User AvatarMD. Sakib Khan
    Participant

    Please join and ask your questions here: https://discord.gg/XW8wNPzb

    in reply to: positive and negative number by Switch Case #160673
    User AvatarMD. Sakib Khan
    Participant

    Please join and ask your questions here: https://discord.gg/XW8wNPzb

    in reply to: automatically global variable in javascript #160672
    User AvatarMD. Sakib Khan
    Participant

    Are you looking for scope in javascript?? I think so..
    Helpful link: https://www.tutorialsteacher.com/javascript/scope-in-javascript

    in reply to: positive and negative number by Switch Case #160671
    User AvatarMD. Sakib Khan
    Participant

    nah,
    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 hoy

    in reply to: ReactJs kobe asbe? #159764
    User AvatarMD. Sakib Khan
    Participant

    Already told you in Discord. ^_^

    in reply to: information #156638
    User AvatarMD. Sakib Khan
    Participant

    Hi 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

    in reply to: javascript file inspect korle ei error ase keno?? #153977
    User AvatarMD. Sakib Khan
    Participant
    in reply to: javascript file inspect korle ei error ase keno?? #153976
    User AvatarMD. Sakib Khan
    Participant

    eta onek karonei ashte pare.
    maximum time ‘Bracket’ thik moto na deyar karone ashe.
    tobuo code ta discord e share korun.

Viewing 15 posts - 31 through 45 (of 84 total)