javascript bangla tutorial 26 : how to create and use array

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 114

  • @dilrubaakhter9582
    @dilrubaakhter9582 3 года назад +9

    Array class All Code:
    Array:
    Note: Array sobsomay index 0- start hoi
    var thanvir = new Array(5);
    thanvir[0] = "Shipa";
    thanvir[1] = "Smiriti";
    thanvir[2] = "Shakila";
    thanvir[3] = "Toma";
    thanvir[4] = "Tiasha";
    document.write(thanvir[0] + "");
    document.write(thanvir[1] + "");
    document.write(thanvir[2] + "");
    document.write(thanvir[3] + "");
    document.write(thanvir[4]);
    var thanvir = new Array(5);
    thanvir[0] = "Shipa";
    thanvir[1] = "Smiriti";
    thanvir[2] = "Shakila";
    thanvir[3] = "Toma";
    thanvir[4] = "Tiasha";
    document.write(thanvir);
    Note:Array Print Korte.
    var thanvir = new Array(5);
    thanvir[0] = "Shipa";
    thanvir[1] = "Smiriti";
    thanvir[2] = "Shakila";
    thanvir[3] = "Toma";
    thanvir[4] = "Tiasha";
    document.write(thanvir.length);
    Note:Array er Size dekte
    var names = ["Anis", "Than", "Rinku", "shippu"];
    document.write(names.length);
    Note:Shortkat vabe array er lenght dekte
    var names = ["Anis", "Than", "Rinku", "shippu"];
    document.write(names);
    Note:Array Print Korte.
    var names = ["Anis", "Than", "Rinku", "shippu"];
    names.push("Tanvir");
    document.write(names);
    Note:Push korte
    var names = ["Anis", "Than", "Rinku", "shippu"];
    names.push("Tanvir");
    document.write(names[4]);
    Note:Alada Vabe Print kore dakar jonno.
    var names = ["Anis", "Than", "Rinku", "shippu", "Farid"];
    document.write(names.length);
    names.push("Tanvir" + "");
    document.write(names.length);
    Note:push mane seasher eliment add kora...
    pop mane seasher element remove kora.
    var names = ["Anis", "Than", "Rinku", "shippu", "Farid"];
    names.pop();
    names.pop();
    document.write(names);
    var country1 = ["Bangladesh",
    "Pakistan", "Srilanka"
    ];
    var country2 = ["India", "Afganishtan", "Nepal"];
    var country = country1.concat(country2);
    document.write(country);
    Note:Concat Mane Jukto kora

  • @ADNANKHAN-ws7cl
    @ADNANKHAN-ws7cl 2 года назад +1

    onk kisu shikar acy sir, apnar sob video theke Thank You sir

  • @sojibcj4607
    @sojibcj4607 4 года назад +2

    sir ami apnar onek gula videos dekhsi. apnar vujanor darabahikota onek vlo.

  • @farhan6206
    @farhan6206 2 года назад +2

    love u sir 🤗🤗☺☺☺☺

  • @shekhabusufianshoron
    @shekhabusufianshoron 2 года назад +2

    Thank you sir

  • @arfatunjannattina409
    @arfatunjannattina409 3 года назад +2

    Tnx vaiya

  • @sangitabose6460
    @sangitabose6460 4 года назад +2

    I'm from India,, apnar video dekhe ami onk kichu shikhte perechi ,thank you sir,, r sir plzzz php class ar video korun, ami shikhte chai apnar kach theke, plzzz 🙏

  • @alaminmolla548
    @alaminmolla548 4 года назад +1

    Dear sir. i am always following your guideline.

  • @mdshahadathossain3599
    @mdshahadathossain3599 3 года назад +2

    My best teacher💞

  • @salahuddinahmedshuvo6752
    @salahuddinahmedshuvo6752 4 года назад +2

    বেশ ভালোভাবে বুঝিয়েছেন। ধন্যবাদ।

  • @Mohyminulislam2024
    @Mohyminulislam2024 3 года назад +1

    ধন্যবাদ ভাইয়া,
    আপনার কাছে প্রতিদিন আমি অনেক-অনেক ধরনের প্রোগ্রামিং শিখে থাকি। আপনাকে ধন্যবাদ দেওয়ার মতো ভাষা আমাদের জানা নেই, সেজন্য একটু হলেও আপনাকে কৃতজ্ঞতা জানানোর জন্য আমরা আপনাকে এই কমেন্টগুলো করে থাকি। দোয়া করি যাতে আপনি সামনে আরও ভাল ভাল কনটেন্ট আমাদের জন্য নিয়ে আসতে পারেন ।শেষে আবারও বলতেছি অসংখ্য ধন্যবাদ আপনার মূল্যবান আমাদের মধ্যে দেওয়ার জন্য।

    • @anisul-islam
      @anisul-islam  2 года назад

      thanks a lot for your thankfulness

  • @aminulislamrahat3889
    @aminulislamrahat3889 3 года назад +2

    0:16 clap for you man 👏👏🏻👏🏼👏🏽👏🏾👏🏿

  • @rashidulislam13579
    @rashidulislam13579 3 года назад +1

    Amazing tutorial... thanks

  • @jaakaariahoossin7923
    @jaakaariahoossin7923 5 лет назад +4

    Thank you sir. I'm waiting for your next JavaScript tutorial.

  • @aiikthakharzidan1946
    @aiikthakharzidan1946 4 года назад +1

    You are the best teacher

  • @ibntofajjal
    @ibntofajjal 4 года назад +2

    আরেহ স্যার থ্যাংক ইউ সো মাচ😍😍❤❤

  • @MarufHasanShihab99
    @MarufHasanShihab99 10 месяцев назад

    it's really rare to find such a good instructor like you Vaiya, Thanks for the detailed video. Take love from core of my heart 🖤 Watch Date 14-02-2024

  • @Monirulislam-eo9xb
    @Monirulislam-eo9xb 4 года назад +2

    শুভ সকাল ভাইয়া......... ভিডিওটা আপলোট করেছেন ২৪ জানুয়ারী ২০২০, আমি দেখতেছি ২৩ জানুয়ারী ২০২১..

  • @salmankhan-re8uc
    @salmankhan-re8uc 5 лет назад +5

    I follow all time. I have invited my all friends❤❤❤❤

  • @HabibRegan-jz6le
    @HabibRegan-jz6le 11 месяцев назад

    var num = [10,20,30,40,50];
    num.push('60');
    document.write(num + '');
    num.pop();
    document.write(num + '');
    var n2=[25,15,18];
    var n3= num.concat(n2);
    document.write(n3);

  • @sazidurrahman7754
    @sazidurrahman7754 3 года назад +1

    Great again!!!

  • @salmankhan-re8uc
    @salmankhan-re8uc 5 лет назад +2

    Carry on

  • @mdhrbs2610
    @mdhrbs2610 Год назад

    thank you sir for valuable time

  • @subhraroychowdhury5005
    @subhraroychowdhury5005 2 года назад +1

    Awesome

  • @mdsobahany3609
    @mdsobahany3609 3 года назад +1

    may Allah bless you

  • @SOHANAHMED-us7gn
    @SOHANAHMED-us7gn 6 месяцев назад

    you are the best

  • @md.sharifulislam1369
    @md.sharifulislam1369 5 лет назад +1

    I am waiting for your php tutorials

  • @crackers4411
    @crackers4411 2 года назад +1

    Thank you vi..

  • @shakilmahmud4393
    @shakilmahmud4393 2 года назад +1

    love you bhai

  • @nitumoni3519
    @nitumoni3519 3 года назад +1

    Thank you so much sir🥰

    • @anisul-islam
      @anisul-islam  3 года назад +1

      Always welcome

    • @nitumoni3519
      @nitumoni3519 3 года назад

      @@anisul-islam ❤️💌💌💌💌🥰🥰🥰🥰🥰🥰🥰

  • @celeritylife5039
    @celeritylife5039 4 года назад +1

    Thank you sir ❤

  • @AminulIslam-fs6vv
    @AminulIslam-fs6vv 4 года назад +1

    Nice

  • @KeyaBacher
    @KeyaBacher Год назад

    Thank you Sir.

  • @mohammadzubayerkhan321
    @mohammadzubayerkhan321 4 года назад +1

    Assalamualykum anis sir

  • @shahriarsaikot1381
    @shahriarsaikot1381 4 года назад

    Assalamu alaikum Anis vai. Vai please project type kisu video upload koren. Object oriented programming details and advance level er jonno hole valo hoto. apni khub valo explain korte paren tai apnar video er ashay bose thaki. Asha kori javascript er project vittik kisu video diben like rock paper scissors game.

  • @jscreation3242
    @jscreation3242 3 года назад +1

    var name1 = ["jewel","salman"];
    var name2 = ["rajiya","sultana"];
    var name = name1.concat(name2);
    console.log(name)

  • @ne_mo.
    @ne_mo. 3 года назад +1

    thank u sir

  • @marmonilhobi7130
    @marmonilhobi7130 3 года назад +1

    nice

  • @amlandewan6317
    @amlandewan6317 4 года назад +1

    thank you

  • @abdulalim4673
    @abdulalim4673 5 лет назад +1

    Thanks bhai

  • @riazrabbani8052
    @riazrabbani8052 4 года назад +1

    thanks

  • @agnijitanath1665
    @agnijitanath1665 3 года назад +1

    Amazing!

  • @mdkabir-iz1nh
    @mdkabir-iz1nh 5 лет назад +1

    Good

  • @07_mdathiqulhasanmomin72
    @07_mdathiqulhasanmomin72 3 года назад +1

    function sum(x,y)
    {
    return x+y;
    }
    function sub(x,y)
    {
    return x-y;
    }
    function multi(x,y)
    {
    return x*y;
    }
    function div(x,y)
    {
    return x/y;
    }
    function rem(x,y)
    {
    return x%y;
    }
    do {
    var flag=prompt("Enter Right one 1.Addition 2.Substraction 3.Multification 4.Divide 5.Modulas 6.exit");
    switch(flag)
    {
    case "1":
    {
    var num1=parseFloat(prompt("number one: "));
    var num2=parseFloat(prompt("number two: "));
    var result=sum(num1,num2);
    document.write("Result is"+result);
    break;
    }
    case "2":
    {
    var num1=parseFloat(prompt("number one: "));
    var num2=parseFloat(prompt("number two: "));
    var result=sub(num1,num2);
    document.write("Result is"+result);
    break;
    }
    case "3":
    {
    var num1=parseFloat(prompt("number one: "));
    var num2=parseFloat(prompt("number two: "));
    var result=multi(num1,num2);
    document.write("Result is"+result);
    break;
    }
    case "4":
    {
    var num1=parseFloat(prompt("number one: "));
    var num2=parseFloat(prompt("number two: "));
    var result=div(num1,num2);
    document.write("Result is"+result);
    break;
    }
    case "5":
    {
    var num1=parseFloat(prompt("number one: "));
    var num2=parseFloat(prompt("number two: "));
    var result=rem(num1,num2);
    document.write("Result is"+result);
    break;
    }
    default :
    document.write("Error Input");
    }
    }while(flag!=6);

  • @imtiazhossainapon
    @imtiazhossainapon 4 года назад +1

    var names = ["1", "2","3" ];
    document.write(names);
    document.write(names[1] + "");
    names.push("apon");
    document.write(names+ "");
    names.pop();
    document.write(names);

  • @mohammadsayem4588
    @mohammadsayem4588 11 месяцев назад

    I know collection of similar type of data is called array
    but is it true for js also?

  • @bulbulahmed3098
    @bulbulahmed3098 Год назад +1

    ❤❤❤❤

  • @mohammadmorowan7094
    @mohammadmorowan7094 3 года назад

    Sir,,,Javascript er project dile hoito help hoto jodi apnar enough time thake Sir ❤️

  • @likhonkhan86
    @likhonkhan86 3 года назад +1

    Done

  • @afsanaafsana-z9v
    @afsanaafsana-z9v Год назад

    Tnx vi

  • @tubebimalendu
    @tubebimalendu 5 лет назад +3

    Dear Sir i am following your videos sincerely, i have a big request to you on your javascript tutorial.If your javascript tutorial with #HTML input basis that would be more better for learners.

    • @anisul-islam
      @anisul-islam  3 года назад

      Everything is organized in order. Follow each video in this series, then put questions.

  • @sakibahmedsam6025
    @sakibahmedsam6025 3 года назад

    আসসালামু আলাইকুম স্যার। দয়া করে একটু দেখবেন কি? 'var' ইউজ করে এক লাইনে Array declare করা ছাড়া অন কোন ওয়ে তে হচ্ছে না। let অথবা const ব্যাবহার করতে হচ্ছে।

  • @Rony_Riman11
    @Rony_Riman11 2 года назад

    let names = ['sogri', 'mogir', 'jogir', 'khisir', 'higir' , 'dorgir'];
    names.push('sokhina bibi');
    names.unshift('riman roni');
    names.pop()
    names.shift()
    for (let i = 0; i < names.length; i++) {
    const element = names[i];
    console.log(element)
    }

  • @ashurajannat378
    @ashurajannat378 5 лет назад +2

    as salam..how r u? thank you sir

    • @anisul-islam
      @anisul-islam  5 лет назад +1

      walaikum aas salam. I am fine. how about you my dear?

    • @ashurajannat378
      @ashurajannat378 5 лет назад

      @@anisul-islam I live in Rajshahi city..I m a MBA student..thank you

  • @sajidmahmud568
    @sajidmahmud568 2 года назад

    var rahat= new Array();
    var sum=0;
    for (i = 0; i < 3; i++)
    {
    rahat[i]= parseInt(prompt("Enter your Number:"));
    sum=sum + rahat[i];
    console.log(rahat[i]);
    rahat.pop(i);
    }
    console.log(sum);
    Ei khan e user input naoyar por push( ) ,,pop( ) method ta k ki vabe kaj korabo ? sir?

  • @mjrjuri6474
    @mjrjuri6474 4 года назад

    THANKS A LOW

  • @mdkabir-iz1nh
    @mdkabir-iz1nh 5 лет назад +1

    Sir aponi ki JSON abong DOM manipulation niye video banaben?

  • @mohammadzubayerkhan321
    @mohammadzubayerkhan321 4 года назад

    Ai function ta shikhata dorkar amar apni aitar upor video korle bhalo hoy.ami onek video dekhesilam kintu shobie shongkhepe jQuery diye ba kew bibhinno website theke linker maddhome sheta kore.kintu ami shebhabe shongkhepe shikhte chie na . Ami w3school er ta shikhte chie.

  • @friendsfair9283
    @friendsfair9283 2 года назад

    ভাই .concat করার পর arrey.length মাত্র 1 বাড়ে। এর কারণ কি?

  • @tusharuddin1666
    @tusharuddin1666 4 года назад

    Anis sir amar ARRAY er value gulo print hoche na keno bujte partechina. i need help.apnar ki facebook group ahce...?

  • @Abmohammadashrafulislam
    @Abmohammadashrafulislam 5 лет назад +1

    Sir...i am students..স্যার আমি জানতে চাই যে ভিডিও গেম তৈরি করার জন্য কোন কোন Programme Language শিখতে হবে। যেমন PUBG Free Fire কোন কোন Language তৈরি করা হয়েছে। এবং কোন কোন language শিখতে হবে। আপনি একটু বুঝিয়ে বলতেন অনেক উপকার হতো স্যার।????

  • @r1y4n
    @r1y4n 3 года назад

    Sir.could you please give me a task on array for my practice please.

  • @protikbhattacharjee2337
    @protikbhattacharjee2337 3 года назад +1

    var name=new Array(5);
    name[0]="Protik";
    name[1]="Rima";
    name[2]="Tina";
    name[3]="Rinku";
    name[4]="Tinku";
    document.write(name[0]);
    document.write(name[2]);
    document.write(name);
    output: ,,,,
    Sir amr output amn astese.Amr ki vul hyeche

  • @mohammadzubayerkhan321
    @mohammadzubayerkhan321 4 года назад

    Ami apnar kase sbikgte chie.R ami apnar ekta tutorial pete chie sheta hobe w3school er js theke image zoom er function ta

  • @mohammadzubayerkhan321
    @mohammadzubayerkhan321 4 года назад

    Naki kno it sector ache?

  • @swapankarmokar3672
    @swapankarmokar3672 8 месяцев назад

    var names = ["Swapan" , "Arif" , "Liton" , "Rajon"];
    document.write(names + "");
    document.write (names[2] + "");
    /* Push Something */
    names.push ("Maya");
    document.write(names + "");
    document.write (names[4] + "");
    /* Pop Function/ Delete last */
    names.pop ();
    document.write(names + "");
    /* Concat/Add Array */
    let class1 = ["Rubel" , "Rajon" , "Liton"];
    let class2 = ["Shima" , "Rima" , "Riya"];
    let class3 = ["Hira" , "Jakir" , "Manik"];
    let allClass = class1.concat(class2).concat(class3);
    document.write (allClass);

  • @mohammadzubayerkhan321
    @mohammadzubayerkhan321 4 года назад

    Sir ami apnar kase shikbte chie.apni ki bashaygiye shikhan?

  • @ADNANKHAN-ws7cl
    @ADNANKHAN-ws7cl 2 года назад +1

    💙💙💙💙💜💜💜💛💛💛💛💓💓💓❤️❤️❤️❤️ U sir,

  • @inzamamulhoqueemon3274
    @inzamamulhoqueemon3274 4 года назад

    var name = new Array(5);
    name[0] = "Emon";
    name[1] = "Arnob";
    name[2] = "Arohi";
    name[3] = "Farhana";
    name[4] = "Tarin";

    document.write(name[3]);
    print ken hoy na.
    undefined print kore

    • @anisul-islam
      @anisul-islam  4 года назад

      you should have a warning saying name is deprecated (like a cross between name). so change the array name and then try. it should work. Next time avoid "name" word as a variable/function/array name

    • @inzamamulhoqueemon3274
      @inzamamulhoqueemon3274 4 года назад

      @@anisul-islam it worked..
      thank you so much, bro.

  • @amirhossain8453
    @amirhossain8453 4 года назад

    prompt (" ") ফাংশন ব্যবহার করে User থেকে Array এর Value নেয়া যায় কিভাবে একটু শেখাবেন ?

  • @productspromoters
    @productspromoters 3 года назад

    /* var names = new Array(5);
    names[0] = "Asdullah";
    names[1] = "Al Galib";
    names[2] = "Ashik";
    names[3] = "Rhaman";
    names[4] = "Hafaz";
    console.log(names);

    var names = ["galib", "hafiz", "nayem", "rakib", "tonmoy","sagor","masum"];
    names.push("sokina", "jorina","sokina", "jorina","karina", "mariya", "sadiya");
    console.log(names);
    names.pop();
    names.pop(); */

    /* var counrry1 = ["Bangladesh", "india","pakistan"];
    var counrry2 = ["arab", "egypt","malay"];
    var country = counrry1.concat(counrry2);
    console.log(country); */

  • @sayemahmad562
    @sayemahmad562 3 года назад +1

    var contry1 =[" Bangladesh"," Indea"];
    contry2 =[" Nepal"," Vutan"];
    contry = contry1.concat(contry2);
    document.write(contry);
    // var names = ["abul","babul","rohim","korim","tushar","jabed"];

    // names.push("kobir");
    // names.push("habib");
    // names.push("kamal");
    // names.push("jabbar");
    // names.push("jannat");
    // names.pop("");

    // // document.write(names);
    // names.pop("");

    // document.write(names);
    // // document.write(names[prompt("Enter Number : ")]);

  • @fifaworldcupwatch
    @fifaworldcupwatch Год назад

    26

  • @souravdas9077
    @souravdas9077 5 лет назад

    ভাই আমি আপনার চেলেল সাবস্ক্রাইব করছি আর আপনে আমার চেনেল সাব করেন নাই। প্লিজ ভাই সাব করেন

    • @anisul-islam
      @anisul-islam  5 лет назад +7

      Nonsense. Why you have to subscribe my channel if it is not needed ? Why you are even asking me to subscribe your channel? I am a teacher not businessman. Stop doing this act for god sake please.

    • @alaminmolla548
      @alaminmolla548 4 года назад

      @@anisul-islam thank you sir.you are my great online teacher.

  • @manirulislam6541
    @manirulislam6541 4 года назад +1

    very helpfu l is your video

  • @gamingsaikot2675
    @gamingsaikot2675 Год назад

    var kiron = ["kiron" , "mala" , "modon" , "kumar" , "forhad" , "malek"];
    console.log(kiron.length);
    kiron.push("sihab");
    kiron.push("jani");
    kiron.push("janab");
    kiron.push("uttom");
    console.log(kiron.length);
    console.log(kiron);
    kiron.pop(kiron);
    console.log(kiron);
    // coacat value use this page
    var names1 = ["mofix", "malek", "chanmia", "kalidur"];
    var names2 = ["mari", "muslim", "mona", "dhori"];
    var result = names1.concat(names2);
    console.log(result);
    console.log(kiron.length);

  • @Solayman-x1q
    @Solayman-x1q 3 месяца назад

    var country1 = ["Bangladesh", "Nepal"];
    var country2 = ['Pakistan', 'Afganistan']
    var country = country1.concat(country2);
    document.write(country);

  • @sportsday4075
    @sportsday4075 2 года назад

    document.write("!inline");
    var names = new Array();
    names[0] = "anisul";
    names[1] = "hasib";
    names[2] = "nasir";
    names[3] = "anamul";
    names[4] = "ashraful";
    document.write(names[0] + "");
    document.write(names[1] + "");
    document.write(names[2] + "");
    document.write(names[3] + "");
    document.write(names[4] + "");
    document.write(names + "");
    document.write("inline");
    var names = ["anisul", "abdul","mujibur","akash","rubayet"];
    document.write(names[0] + "");
    document.write(names[1] + "");
    document.write(names[2] + "");
    document.write(names[3] + "");
    document.write(names[4] + "");
    document.write(names + "");
    //library fuction
    document.write("library fuction");
    names.push("sokina");
    document.write(names + "");
    names.pop();
    document.write(names);

  • @Rony_Riman11
    @Rony_Riman11 2 года назад

    let countryOne = ['bangladesh', 'india', 'nepal'];
    let countyTwo = ['pakistan', 'vutan', 'sirlanka'];
    let countyThree = ['england', 'china'];
    let world = [...countryOne,...countyTwo,...countyThree];
    console.log(world)

  • @sazidurrahman7754
    @sazidurrahman7754 3 года назад +1

    Great again!!!

  • @nishatfariza6769
    @nishatfariza6769 3 года назад +1

    Thank you so much Sir ❤️❤️❤️

  • @TajulIslam-lo4su
    @TajulIslam-lo4su 2 года назад +1

    Thanks vai

  • @kusumakter366
    @kusumakter366 3 года назад +1

    Thank you

  • @TBCforexbd
    @TBCforexbd 2 года назад

    Thank You Sir

  • @bulbulahmed3098
    @bulbulahmed3098 Год назад +1

    ❤❤❤

  • @HasnaHena-sg6cy
    @HasnaHena-sg6cy 6 месяцев назад

    Done