javascript bangla tutorial 30 : two dimensional array | Task 9

  Рет қаралды 30,519

Anisul Islam

Anisul Islam

Күн бұрын

Пікірлер: 136
@mosarofhossen8260
@mosarofhossen8260 2 жыл бұрын
Task-09:আমি ৮০% নিজে সমপূর্ন করেছি বাকিটা আপনার কাছ থেকে দেখে করলাম।স্যার
@Mohyminulislam2024
@Mohyminulislam2024 3 жыл бұрын
ধন্যবাদ ভাইয়া, আপনার কাছে প্রতিদিন আমি অনেক-অনেক ধরনের প্রোগ্রামিং শিখে থাকি। আপনাকে ধন্যবাদ দেওয়ার মতো ভাষা আমাদের জানা নেই, সেজন্য একটু হলেও আপনাকে কৃতজ্ঞতা জানানোর জন্য আমরা আপনাকে এই কমেন্টগুলো করে থাকি। দোয়া করি যাতে আপনি সামনে আরও ভাল ভাল কনটেন্ট আমাদের জন্য নিয়ে আসতে পারেন ।শেষে আবারও বলতেছি অসংখ্য ধন্যবাদ আপনার মূল্যবান আমাদের মধ্যে দেওয়ার জন্য।
@mdsobahany3609
@mdsobahany3609 3 жыл бұрын
megick er moto bujlam. many many thanks . Allah apnake nek hayat dan koruk. amin............................................amin...............
@anisul-islam
@anisul-islam 3 жыл бұрын
Ameen
@Login0p
@Login0p 3 жыл бұрын
Sir ami akhone c++ sikhchi ... next sem java acche... but ami c++ sesh kore .apnar java course a chole asbo.... dhonnobaad dada...r by the way ami india theke apnar chotto vai... ami chennai a srm ktr university ta pori
@BarunNafak
@BarunNafak 2 жыл бұрын
অনেক ধন্যবাদ
@rashidulislam13579
@rashidulislam13579 3 жыл бұрын
thank you vai for giving us such wonderful tutorials.........
@anisul-islam
@anisul-islam 3 жыл бұрын
welcome
@mdshahadathossain3599
@mdshahadathossain3599 3 жыл бұрын
Thank You, Sir💕
@anisul-islam
@anisul-islam 3 жыл бұрын
welcome
@abidhossainmanu7827
@abidhossainmanu7827 3 ай бұрын
Amazing
@tusharsamanta7028
@tusharsamanta7028 3 жыл бұрын
Waiting for the same! অনেক অনেক ধন্যবাদ!
@mdsamialbadhon1106
@mdsamialbadhon1106 10 ай бұрын
Task 9 : function highers() { var maxscorer = docs[0][0]; var maxscore = docs[0][1]; for (var x = 1; x < docs.length; x++) { if (docs[x][1] > maxscore) { maxscore = docs[x][1]; maxscorer = docs[x][0]; } } document.write(maxscorer); // return maxscorer; } var docs = [ ['Sakib', 15], ['Tamim', 20], ['Mahmudullah', 105], ['Musfiq', 57], ]; highers(docs); // var prnt = highers(docs); // document.write(prnt);
@movieszone7582
@movieszone7582 3 жыл бұрын
আসসালামু আলাইকুম স্যার, এন্ড্রয়েড স্টুডিও তে কীভাবে হিজরি/আরবি কেলেন্ডার বানাতে হয় এই বিষয়ে একটা ভিডিও বানালে খুব উপকার হতো।❤️❤️
@MarufHasanShihab99
@MarufHasanShihab99 11 ай бұрын
Thanks for the details video brother. Very informative💖 Watch Date: 14-02-2024
@ঘাসফড়িং-চ৯ণ
@ঘাসফড়িং-চ৯ণ 3 жыл бұрын
Waiting sir
@kingsukrudra2997
@kingsukrudra2997 3 жыл бұрын
Thank you vaia 🥰🥰🥰🥰🥀
@anisul-islam
@anisul-islam 3 жыл бұрын
welcome
@almamun2003
@almamun2003 3 жыл бұрын
waiting sir
@nazmulislam-kl1sy
@nazmulislam-kl1sy 3 жыл бұрын
Thank you. Sir.
@anisul-islam
@anisul-islam 3 жыл бұрын
welcome
@ne_mo.
@ne_mo. 2 жыл бұрын
thank u sir
@TtradingBusinessCentre
@TtradingBusinessCentre 2 жыл бұрын
Thank You Sir
@Fitbuzz0.2
@Fitbuzz0.2 3 жыл бұрын
Thanks
@ঘাসফড়িং-চ৯ণ
@ঘাসফড়িং-চ৯ণ 3 жыл бұрын
Assalamu alikum sir
@Newsmanusa
@Newsmanusa Жыл бұрын
how to i will return in 2 value highestscorer and highestscore
@ourfamily3665
@ourfamily3665 3 жыл бұрын
স্যার WebRTc এর উপরে একটা ভিডিও বনান
@mdshahadathossain3599
@mdshahadathossain3599 3 жыл бұрын
Task 9: function highScoreRun(playerInfo){ let highScorer=playerInfo[0][0]; let highScore=playerInfo[0][1]; for(var x =0; x
@akbarhosenpersonal
@akbarhosenpersonal 8 ай бұрын
x = 1 হবে মনে হয়।
@mdminhajulislam3525
@mdminhajulislam3525 Жыл бұрын
Task 9: var scores = [ ["Plyer1", 95], ["Plyer2", 19], ["Plyer3", 100], ["Plyer4", 45], ] function highestScore(scores) { var highscorer = scores[0][0]; var highscore = scores[0][1]; for (var x = 1; x < scores.length; x++) { if (highscore < scores[x][1]) { highscore = scores[x][1]; highscorer = scores[x][0]; } } return highscorer; } var topScore = highestScore(scores); console.log(topScore);
@mosarofhossen8260
@mosarofhossen8260 2 жыл бұрын
//Task-09:Creat a function called highestRunScorer that will //Receive a 2d array called playersInfo //Based on highest score,return the name of the player function highestRunScorer(playersInfo){ var highestScorer=playersInfo[0][0]; var highestScore=playersInfo[0][1]; for(var x=1;x
@tasnimakhanchowdhury3806
@tasnimakhanchowdhury3806 3 жыл бұрын
As you said for 2D arrays we need 2 for loops. But in task 9, why didn't we use 2 for loops?
@basharweb
@basharweb 2 жыл бұрын
Because here has been just only one element (name) print.
@md.zahidulhaque7123
@md.zahidulhaque7123 2 жыл бұрын
By this 2D array I can only get output or print name or the score. But I want to print both(name and the soore). How to do it sir? Can you pls help me.
@nozrofshahriar9846
@nozrofshahriar9846 2 жыл бұрын
var allScores = [ ['Tamim',178],['Mominul',181],['Liton',105],['Shanto',153],['Shakib',214],['Mushfiq',200],['Ashraful',191]]; var highestRunScorer = 0 ; var playerName = ''; function highestRunScore (allScores){ for(var x = 0; x
@mdshahadathossain3599
@mdshahadathossain3599 3 жыл бұрын
😍👍😍👍😍
@rizwanmalikmiraz6197
@rizwanmalikmiraz6197 3 жыл бұрын
let score = [ ['Tamim' , 30], ['Liton' , 70], ['Shakib' , 60], ['Shanto' , 90], ['Mushfiq' , 50] ] let highestRunScorer = score[0][1] let name for (let i = 0;i < score.length;i++) { if (highestRunScorer < score[i][1]) { name = score[i][0] highestRunScorer = score[i][1] } } console.log('Highest Run Scorer ' + name + ' = ' + highestRunScorer)
@abushakerjakaria9773
@abushakerjakaria9773 6 ай бұрын
highestRunScorer = score[0][1] ,,,,, vai ekhane [0] [1] kivabe dhorcen ?? index 0 column 1 ?? nai column 0 column 1 ??
@ronispresent3324
@ronispresent3324 3 жыл бұрын
Sir valo basa niben..git & github niye details tutorial Video pelee valo hoto
@anisul-islam
@anisul-islam 3 жыл бұрын
Insha Allah
@anisul-islam
@anisul-islam 3 жыл бұрын
it is not completed
@khshakib791
@khshakib791 2 жыл бұрын
task 9 function highestRunScorer(array){ let max = array[0][1] let name = array[0][0] for (let i = 1; i < array.length; i++) { if( max< array[i][1]){ max = array[i] [1] name = array[i] [0] } } console.log(name," Score ", max ,"Runs"); } let playersInfo = [ ["Ashraful",95], ["Tamim",5], ["Shakib",73], ["Imrul",23] ] highestRunScorer(playersInfo)
@zarifraja5923
@zarifraja5923 2 жыл бұрын
function cricket(){ var names_scores = [ ["Zarif" , 120], ["Sakib" , 110], ["Mushfiq" , 150], ["Mashrafee" , 105] ] let highest_score = names_scores[0][1] ; let highest_scorer = names_scores[0][0] ; for (let x=1; x
@sapnilsumon7053
@sapnilsumon7053 2 жыл бұрын
স্যার আমি নামের সাথে স্কোর prient কতে চাই তাহলে কি করতে হবে ???
@basharweb
@basharweb 2 жыл бұрын
// Example: 3. print highestRunScorer name with Score function highestRunScorer( playersInfo ){ var highestScorer = playersInfo[0][0]; var highestScore = playersInfo[0][1]; for (var x = 1; x < playersInfo.length; x++){ for (var y = 1; y < playersInfo.length; y++){ if ( highestScore < playersInfo[x][1]){ highestScore = playersInfo[x][1]; highestScorer = playersInfo[x][0]; var highestScorerWithScore = 'Result : ' + highestScorer + ' = ' + highestScore; } } } return highestScorerWithScore; } var playersInfo = [ ['Patel', 82], ['Russel', 35], ['Gayle', 175], ['Martin', 135], ['Rashid', 25], ]; var names = highestRunScorer( playersInfo ); console.log(names);
@mayhidyhasan420
@mayhidyhasan420 Жыл бұрын
ভাইয়া এখানে তো আমরা শুধু নাম পেলাম, কিন্তু যদি নাম ও স্কোর দুইটাই দেখতে চাই তাহলে কি করতে হবে? যদি দয়া করে একটু শেখান খুবই উপকৃত হব।
@sojunkchandra
@sojunkchandra 6 ай бұрын
// task 9 function highestScore(student) { hight_name = student[0][0]; hight_mark = student[0][1]; for(let count=0;counthight_mark) { hight_mark = student[count][1]; hight_name = student[count][0]; } } return hight_name; } let student = [["sojun",55],["rahad",88],["partho",78]]; let highest_name = highestScore(student); document.write(highest_name);
@Newsmanusa
@Newsmanusa Жыл бұрын
স্যার আমি কি ২টাই return করতে পারবো ? কিন্তু সেটা কিভাবে ?
@rifat_8617
@rifat_8617 Жыл бұрын
function heighestScore(a){let highscr=0;let highidx=0;for(i=0;ihighscr){highidx=i;highscr=a[i][1]}}return(a[highidx][0])}const array=[["alex",8],["nafi",5],["david",38],["sojo",16]];document.write(heighestScore(array));
@suzanhossen6972
@suzanhossen6972 Ай бұрын
🤟💌
@schnehokhan1543
@schnehokhan1543 2 жыл бұрын
var plyersInfo = [ ["Ash", 95], ["Miz", 150], ["Rakib", 45], ["Lu", 105], ]; function highestRunScorer(info){ var max_scorer = info[0][0]; var max_score = info[0][1]; for(var x=1; x
@MrSathil
@MrSathil 5 ай бұрын
do anyone need water and you realize what i want to mean water!! bloody july
@MdRasel-up6sv
@MdRasel-up6sv Жыл бұрын
স্যার highestScorer দেখাচ্ছে না কেন? আমি তো ভুল পাচ্ছি না 😢 var playersInfo=[ ["Mahmudul",12], ["Hasan",80], ["Rasel",30], ["Nirob",40], ["Raju",99] ]; function highestRunScorer(playersInfo){ highestScorer = playersInfo[0][0]; highestScorer = playersInfo[0][1]; for (var i = 1; i< playersInfo.length; i++){ if(highestScorer < playersInfo[i][1]){ highestScorer = playersInfo[i][1]; highestScorer = playersInfo[i][0]; } } return highestScorer; } var name = highestRunScorer(playersInfo); document.write(name);
@basharweb
@basharweb 2 жыл бұрын
function highestmarks( studentsInfo ){ var studentsName = studentsInfo[0][0]; var studentsMarks = studentsInfo[0][1]; for(var x = 1; x < studentsInfo.length; x++){ if (studentsMarks < studentsInfo[x][1]){ studentsMarks = studentsInfo[x][1]; studentsName = studentsInfo[x][0]; } } return studentsName; } var studentsInfo = [ ['Saiful', 65], ['Safi', 60], ['Kafi', 88], ['Rafi', 55], ['Ali', 75], ]; let maxName = highestmarks( studentsInfo ); console.log(maxName);
@mithuvowmick9021
@mithuvowmick9021 Жыл бұрын
Vaiya is this correct or wrong? let array = [ ["Ashraful", 95], ["lu", 105], ["Mizan", 325], ["Rakib", 45], ]; function highestRunScore(arr){ let name = arr[0][0]; let number = arr[0][1]; for(x=0; x < arr.length; x++){ for(n=0; n < arr[x].length; n++){ if(arr[x][n] >number ){ number = arr[x][n] name = arr[x][0] } } } return name } const newName = highestRunScore(array) console.log(newName)
@mobinrayhan
@mobinrayhan 2 жыл бұрын
আগের টাস্ক তো একা একা করেছি ।। আজকে ভয় পায়া গেলাম ।। ৮, ৯ এ এসে!!!
@ShoebAkther
@ShoebAkther 23 күн бұрын
let run =[ ['sakib',40], ['mas',70], ['maha',50], ['asra',40], ['tamim',100], ]; let arry=calculation(run); function calculation(run) { let max = run [0]; for (let i = 1; i < run.length; i++) { if (max < run[i]) { max =run [i]; } } return max; } console.log(arry[0]);
@mdshahadathossain3599
@mdshahadathossain3599 3 жыл бұрын
I could not complete this task: function highScoreRun(playerInfo){ var hightScore=playerInfo[0][1]; for(let x=0; x
@anisul-islam
@anisul-islam 3 жыл бұрын
No worry, practice more
@mdshahadathossain3599
@mdshahadathossain3599 3 жыл бұрын
@Anisul Islam Insha Allah, Sir💕
@tahmidchy
@tahmidchy 2 жыл бұрын
#Task9Solutions function highestRunScorer(playersInfo){ var highestScorer=playersInfo[0][0]; var highestScore=playersInfo[0][1]; for(var x=1;x
@shadat-hossain3500
@shadat-hossain3500 2 жыл бұрын
Task 9 function highestRunScorer(playerinfo){ var machc = playerinfo[0][0]; var mach = playerinfo[0][1]; for(var x= 1; x
@absmshakil2880
@absmshakil2880 3 жыл бұрын
Sir javascript niya ar koyti video Asbay?
@basharweb
@basharweb 2 жыл бұрын
// Example: 3. print highestRunScorer name with Score function highestRunScorer( playersInfo ){ var highestScorer = playersInfo[0][0]; var highestScore = playersInfo[0][1]; for (var x = 1; x < playersInfo.length; x++){ for (var y = 1; y < playersInfo.length; y++){ if ( highestScore < playersInfo[x][1]){ highestScore = playersInfo[x][1]; highestScorer = playersInfo[x][0]; var highestScorerWithScore = 'Result : ' + highestScorer + ' = ' + highestScore; } } } return highestScorerWithScore; } var playersInfo = [ ['Patel', 82], ['Russel', 35], ['Gayle', 175], ['Martin', 135], ['Rashid', 25], ]; var names = highestRunScorer( playersInfo ); console.log(names);
@asiyaakthermahi2211
@asiyaakthermahi2211 Жыл бұрын
Task 9 (ami task ta korte parsi but sudhu nam print hocche na sathe score tao chole asche.) var twoDArray = [ ["Robin", 40], ["Rumana", 105], ["Juned", 98], ["Tanha", 58], ["Santosh", 88] ] function highestRunScorer(scores){ var max = scores[0][1]; var name; for(var i = 0; i < 5; i++){ for(var j = 0; j < 2; j++){ if(max < scores[i][j]){ max = scores[i][j]; name = scores[i]; } } } return name; } var result = highestRunScorer(twoDArray); document.write(result);
@technicalacademy2905
@technicalacademy2905 2 жыл бұрын
Task 09 complete let score = [ ["Sahedul", "10/01/2021", 99], ["Jobayer", "15/01/2021" , 90], ["Al mamun", "20/12/2016", 85], ["Rasel", "18/05/2017", 92], ["Azad", "05/10/2019", 80] ] function hight(score) { hightscorer = score[0] [0]; maxscore = score[0] [2]; joinDate = score [0] [1] for(i=1; i
@mdjobayer2010
@mdjobayer2010 3 жыл бұрын
আসসালামু আলাইকুম স্যার আমি এইস এস সি ২০২২ ব্যাস।আমি আপনার আইসিটি ক্লাস করতে চাই।এখন আপনি কী পড়ান?দয়া করে বলবেন।
@anisul-islam
@anisul-islam 3 жыл бұрын
Check my ICT playlist
@mdjobayer2010
@mdjobayer2010 3 жыл бұрын
@@anisul-islam হ্যা আমি ইউটিউবে আপনার টিউটোরিয়াল দেখি কিন্তু কিছু জায়গায় আমার প্রশ্ন আছে।তাই বলছিলাম আপনি কী পড়ান এইস এস সি দের?
@mdbabul-qm5nm
@mdbabul-qm5nm 3 жыл бұрын
Sob tik ase.. But name ase nh shusu score ase...?? Why?
@hayderali7226
@hayderali7226 2 жыл бұрын
var num = [ ["ashik",29], ["rasel", 23],["sakib",156],["zubayer",78],["tamim",10],["riyad",65] ] function highscorer (score){ let highscorename = score[0][0]; highscore = score [0][1]; for (let x=1; x
@aquaticplanetbd4232
@aquaticplanetbd4232 26 күн бұрын
function highestScore(score ){ var maxscore = score[0][1]; index=0; for(var i=1;i
@basharweb
@basharweb 2 жыл бұрын
// Example: 4. print Lowest salary employer name function lowestestSalaryEmployer( employerInfo ){ let lowestSalaryEmployerName = employerInfo[0][0]; let lowestSalary = employerInfo[0][1]; for( a = 1; a < employerInfo.length; a++){ if( lowestSalary > employerInfo[a][1]){ lowestSalary = employerInfo[a][1]; lowestSalaryEmployerName = employerInfo[a][0]; } } return lowestSalaryEmployerName; } let employerInfo = [ ['Rashid', 10000], ['Faruk', 8000], ['Raihan', 15000], ['Sabbir', 12000], ['Rahat', 5000], ['Nabil', 20000], ['Abdullah', 25500], ['Anis', 18000] ]; let employerName = lowestestSalaryEmployer( employerInfo ); console.log(employerName);
@friendsfair9283
@friendsfair9283 2 жыл бұрын
function highestRunScorer(playersInfo) { var max = playersInfo[0][1]; var playerName = playersInfo[0][0] for (let i = 1; i
@ilosetowin1697
@ilosetowin1697 2 жыл бұрын
Solved it in different way var playersInfo = [ ["Sakib",90], ["Mushfique",80], ["Tamim",100], ["Ashraful",70], ["Tashkin",60] ]; playersInfo.sort(function(d, e){return d[1]-e[1]}); function highestScore(playersInfo){ for(a=0; a
@monzurhossain4580
@monzurhossain4580 2 жыл бұрын
function hightRunScore (scores){ var highestScorer = scores[0][0]; var highestScore = scores[0][1]; for(var x = 1; x < scores.length; x++){ if(highestScore < scores[x][1]){ highestScore = scores[x][1] highestScorer = scores[x][0]; } } return highestScorer; }; var playersInfo = [ ["Asraful", 75], ["Sakib", 70], ["Musfique", 115], ["Mahmudullah", 85], ["Tamim", 105] ] var maxScorer = hightRunScore(playersInfo ); console.log(maxScorer);
@rabiualislam8430
@rabiualislam8430 2 жыл бұрын
// Task 9 function highestRunScore(playersInfo) { var highestscrName = playersInfo[0][0]; var highestScore = playersInfo[0][1]; for (var r = 1; r < playersInfo.length; r++) { if (highestScore < playersInfo[r][1]) { highestRunScore = playersInfo[r][1]; highestscrName = playersInfo[r][0]; } } return highestscrName; } var two_Array = [ ["Rohim", 19], ["Korim", 24], ["Jamal", 40], ["Robiul", 60], ["Bipul", 50], ]; var x = highestRunScore(two_Array); console.log(" Highest Score Name = " + x);
@bangermasi
@bangermasi 10 ай бұрын
var playerlist = [ ['Ankit', 71], ['Raju', 35], ['Satish', 42], ['Kanai', 85], ['Rahul', 105] ] function highestRunScorer(playerlist) { var indexPlayer = 0; var highestScore = playerlist[0][1]; for(var x=1; x highestScore) { highestScore = playerlist[x][1]; indexPlayer = x; } } return playerlist[indexPlayer][0]; } document.write('Highest Score Player : '+ highestRunScorer(playerlist));
@mdarifhasan2665
@mdarifhasan2665 2 жыл бұрын
function heightScore(score){ var heightScoreName=score[0,0]; var heightScoreRun=score[0,1]; for(var x=1;x
@jubayerrahman8447
@jubayerrahman8447 3 жыл бұрын
//task 9 function highestRunScorrer(){ var naMe=prompt("Enter your name:"), score=parseFloat(prompt("Enter your score:")), naMe1=prompt("Enter your name:"), score1=parseFloat(prompt("Enter your score:"), naMe2=prompt("Enter your name:"), score2=parseFloat(prompt("Enter your score:"))); playerInfo=[ [ naMe,score], [ naMe1,score1], [ naMe2,score2] ] if(score>score1 && score>score2){ document.write("The winner is:" + naMe); } else if(score1>score && score1>score2){ document.write("The winner is:" + naMe1); } else{ document.write("The winner is:" + naMe2); } } highestRunScorrer();
@jesunislam4359
@jesunislam4359 11 ай бұрын
const playerInfo = [ ['jisan', 13], ['rakib', 174], ['sojib', 12], ['hobi', 85], ['robi', 35], ['deki', 37],]; function highestRunScore(playerInfo) { let playerName = 0; let playerScore = 0; for (let i = 0; i < playerInfo.length; i++){ const infos = playerInfo[i]; if (playerScore < infos[1]) { playerScore = infos[1]; playerName = infos[0]; } } return playerName; } const result2 = highestRunScore(playerInfo); console.log(result2);
@ahasanulhaqfarhan
@ahasanulhaqfarhan 3 жыл бұрын
Kmn achen sir?
@anisul-islam
@anisul-islam 3 жыл бұрын
Alhamdulillah
@MDOliUllahAntor
@MDOliUllahAntor 2 жыл бұрын
function highestRunScorer(playerInfo){ var highestScoreP=playerInfo[0][0] var highestScore=playerInfo[0][1] for(var i=1; i
@nomanabdullah4135
@nomanabdullah4135 2 жыл бұрын
function hieghtRunScorer(nameScore) { var max = nameScore[0][1]; var name1; for (i = 0; i < nameScore.length; i++){ if (max < nameScore[i][1]) { name1 = nameScore[i][0]; } } return name1; } var scoresName = [ ["noman", 27], ["abir", 26], ["nur", 28], ["ased", 14] ]; document.write(hieghtRunScorer(scoresName));
@hayderali7226
@hayderali7226 Жыл бұрын
let score = [ ["hayder", 7], ["ashik", 44], ["ali", 56], ["sumon", 89], ["kayes", 11] ]; const maxScore =((x)=>{ let highScore = 0; let highScoreName; for (i=0; i
@Amiashik-t2i
@Amiashik-t2i 2 жыл бұрын
Task 9 var score = [ ["Ayoun", 38], ["Jimin", 83], ["Breant", 24], ["Neel", 98], ["Sakib", 120] ]; highestRunScorer(score); function highestRunScorer(score) { var hightestScorer = score[0][0]; var hightestScore = score[0][1]; for(var i=0; i
@neelpaul7993
@neelpaul7993 3 жыл бұрын
var score = [ ["Ayoun", 38], ["Jimin", 83], ["Breant", 24], ["V", 5], ["Neel", 98], ["Mosh", 34] ]; function highestRunScorer(score) { var hightestScore = score[0][1]; var hightestScorer = score[0][0]; for(var s=0; s
@mdkamrulislam1963
@mdkamrulislam1963 2 жыл бұрын
//finding highest scorer var playersScore = [ ["Tamim", 5], ["Liton", 25], ["Afif", 52], ["Mushfiq", 62], ["Sakib", 22], ["Mahmudullah", 102], ] function highestScorer(playersScore){ var topScorer = playersScore[0][0]; var topScore = playersScore[0][1]; for(var x = 1; x < playersScore.length; x++){ if(topScore < playersScore[x][1]){ topScore = playersScore[x][1]; topScorer = playersScore[x][0]; } } return topScorer; } var name = highestScorer(playersScore); document.write("Top Scorer of the match is : " + name);
@rakib417
@rakib417 Жыл бұрын
function highRunScore(score) { var highScores = score[0][0]; var highScore = score [0][1]; for(var i=0; i
@errorexecheat
@errorexecheat 3 ай бұрын
const score = [ ["Sakib", 43], ["Mahmudullah", 58], ["Mushfiq", 32], ["Masud valo hoye jaw", 78], ]; const array2d = (score) => { let high = 0; let name = ""; for (let x = 0; x < score.length; x++) { for (let y = 0; y < score[x].length; y++) { if (!isNaN(score[x][y])) { if (score[x][y] > high) { high = score[x][y]; name = score[x][y - 1]; } } } } console.log(name); }; array2d(score);
@sunovia.5
@sunovia.5 Жыл бұрын
var dataCon = new Array; dataCon = [ ["x",0], ["y",1], ["z",2], ["a",3], ["b",4], ["c",5] ]; var max = dataCon[0][1],personName; for(x=0;x
@samratkumardas5874
@samratkumardas5874 2 жыл бұрын
মাজে মাজে মাথার উপর দিয়ে যায় স্যার
@anisul-islam
@anisul-islam 2 жыл бұрын
na gele shikhben kivabe?
@sloo718
@sloo718 3 жыл бұрын
Alternative way: highestRunScorer() { var array = [ ["Ashraful", 95], ["Mizan", 25], ["Rakib", 45], ["lu", 105] ] const sortedArray = array.sort(function(a,b){ return b[1]-a[1] }) document.querySelector("#text").innerHTML = sortedArray[0][0] }
@webtutorial9635
@webtutorial9635 3 жыл бұрын
Uncaught SyntaxError: Unexpected token '{'
@jainulislam09
@jainulislam09 Жыл бұрын
not working
@JoujonikiAsaRoy
@JoujonikiAsaRoy Жыл бұрын
var playerInfo = [ ["Ashraful",95], ["Sakib",19], ["Mushfiq",3], ["Mahmudullah",45], ["Mashrafee",131] ]; function highestRunScorer(playerInfo){ let highestScore = playerInfo[0][1]; let name = playerInfo[0][0]; for(let i=0; i
@khaledsifullah123
@khaledsifullah123 Жыл бұрын
thank a lot my dear....... task-9(2d array) function highestRunScorer(playersInfo){ var highestScorer = playersInfo[0][0]; var highestScore = playersInfo[0][1]; for (var x =1; x
@tanvirislamrobin2874
@tanvirislamrobin2874 3 жыл бұрын
ভাই প্রোগ্রাম কেন জানি কোন ভেরিয়েবল এর নাম "name" ব্যাবহার করলে আউটপুট আসে না, এন্ড ভিএস কোড এও ক্রস সাইন আসে। var info = [ ["Sakib", 50], ["Mahmudullah", 65], ["Mushfiq", 42], ["Tamim", 47], ["Liton", 22] ]; function validator1(info){ var scores = info [0] [1]; var names = info [0] [0]; for(var i = 1; i
@abusaid2297
@abusaid2297 2 жыл бұрын
console.clear(); function heighestNumber(playerinfo){ var max=playerinfo[0][0]; var max=playerinfo[0][1]; for(i=1; i
@mdarifhasan2665
@mdarifhasan2665 2 жыл бұрын
function heightScore(score){ var heightScoreName=score[0][0]; var heightScoreRun=score[0][1]; for(var x=1;x
javascript bangla tutorial 31 : how to create and use object
14:17
Anisul Islam
Рет қаралды 63 М.
javascript bangla tutorial 41 : Changing CSS style dynamically
10:05
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
javascript bangla tutorial 37 : Event Handler to onclick event
12:53
My Chaotic Wedding
17:23
Antik Mahmud
Рет қаралды 1,7 МЛН
How To PLAN your Game as a Solo Developer
16:26
Heartbeast
Рет қаралды 536 М.
Java 2D arrays 🚚
8:06
Bro Code
Рет қаралды 198 М.
#34 [c++] - Two Dimensional Array
28:47
Adel Nasim
Рет қаралды 149 М.
x86 Assembly: Hello World!
14:33
John Hammond
Рет қаралды 1,4 МЛН
javascript bangla tutorial 33 : Guessing Game
10:13
Anisul Islam
Рет қаралды 43 М.