dear sir, there are many reason to like your video. but I like your video tutorial, because you do not waste time anymore. And also you do not say any unnecessary word. thank u so much
@anisul-islam3 жыл бұрын
So nice of you
@hasnatkabir57429 ай бұрын
Apnr video dekhe akta baby porjonto programing sikhe jabe..superb♥
@MarufHasanShihab9910 ай бұрын
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 11-02-2024
@MdRubel-xy3pc5 жыл бұрын
Super. I really like your video tutorial. Waiting for the next tutorial may be loops.
@MdRatulGazi-k8f Жыл бұрын
TASK 05 DONE.THANK YOU VERY MUCH SIR❤ var letter = prompt("Enter a letter : "); letter = letter.toLowerCase(); switch (letter) { case "a": case "e": case "i": case "o": case "u": document.write("This letter is VOWEL : " + letter); break; default: document.write("This letter is CONSONANT : " + letter); }
@marufislam33625 жыл бұрын
till 16 compelete download . wow you are one of the great person vaia
@anisul-islam3 жыл бұрын
I wish you success
@Gear_Gadgets17 ай бұрын
Alhamdulillah. May Allah bless you.❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@rafsan27444 жыл бұрын
bro really appreciate what you are doing. Arektu advance level er jonno ekta playlist banale onek khushi hobo.:)
@anisul-islam2 жыл бұрын
ei playlist beginner to advance. joto samner dike aagaben aaro advance paben. 100+ video aase ei series e.
@kamal36673 жыл бұрын
My loving and amazing teacher...❤❤❤
@anisul-islam3 жыл бұрын
thanks my dear
@learningbd62123 жыл бұрын
Allah apnake nek hayat dan korok Zajakallah ❤️❤️❤️
@anisul-islam3 жыл бұрын
Ameen
@mosporsho79943 жыл бұрын
Good job.. Very helpful
@ragibshahariar68525 жыл бұрын
you are unstoppable
@celeritylife50394 жыл бұрын
HW done.Thank you sir var value = prompt("Enter a letter:"); value = value.toLowerCase(); switch(value){ case "a": case "e": case "i": case "o": case "u": document.write("Vowel") break; default: document.write("Consonants"); }
Task 5: var letter = prompt("Enter your Letter: "); letter = letter.toLowerCase(); switch(letter){ case "a": console.log("Vowel"); break; case "a": console.log("Vowel"); break; case "a": console.log("Vowel"); break; case "e": console.log("Vowel"); break; case "i": console.log("Vowel"); break; case "o": console.log("Vowel"); break; case "u": console.log("Vowel"); break; default: console.log("Consonent"); } #Thank you so much vaiya
@imranhasan44003 жыл бұрын
Yes sir I have complete Task 5.
@MONIRKHAN-ts3dj5 жыл бұрын
Vai onek vlo hoica...
@nomanjahan2 жыл бұрын
var letter=prompt("Enter you letter"); letter=letter.toLowerCase(); switch(letter) { case "a": document.write("this is a vowel"); break; case "e": document.write("this is a vowel"); break; case "i": document.write("this is a vowel"); break; case "o": document.write("this is a vowel"); break; case "u": document.write("this is a vowel"); break; default: document.write("this is a consonnet"); }
@aburaihan-py4vi4 жыл бұрын
Excellent!
@intellectschool11063 жыл бұрын
Task:05 var Letter=prompt('Enter Your Letter : '); Letter=Letter.toLowerCase(); switch (Letter) { case 'a': document.write('Vowel'); break; case 'e': document.write('Vowel'); break; case 'i': document.write('Vowel'); break; case 'o': document.write('Vowel'); break; case 'u': document.write('Vowel'); break; default: document.write('Consonant'); }
@MdRayhan-fi9bb5 жыл бұрын
Nice video
@WebDeveloperHasan Жыл бұрын
Thank you: var letter = prompt (" Enter a letter :"); letter = letter.toLocaleLowerCase(); switch (letter){ case "a": case "e": case "I": case "o": case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@contactjakaria73444 жыл бұрын
Good job
@MdRubel-hx8cf4 жыл бұрын
Apnar jonno doya kori vai
@limachowdhury28954 жыл бұрын
thank u bhai🙂💙💙
@zabairzubair49272 жыл бұрын
Task:5 //Input a letter and check it is vowel or consonant using switch:- var letter=prompt("Enter a letter:"); letter=letter.toLowerCase(); switch(letter){ case "a": console.log("vowel"); break; case "e": console.log("vowel"); break; case "i": console.log("vowel"); break; case "o": console.log("vowel"); break; case "u": console.log("vowel"); default: console.log("Consonant");
@po-uu5nw3 жыл бұрын
var digit=prompt("enter a digit"); switch (digit){ case "0": document.write("ZEro"); break case "1": document.write("One") break case "2": document.write("Two") break case "3": document.write("Theree") break case "4": document.write("Four") break case "5": document.write("Five") break case "6": document.write("six") break case "7": document.write("seven") break default : document.write("Not a digit"); }
@shamimreza17223 жыл бұрын
thank u very much vaijan....
@sazidurrahman77543 жыл бұрын
Great!!!
@rashidulislam135793 жыл бұрын
very beneficial...... Thanks
@anisul-islam3 жыл бұрын
Welcome!
@itzmrnhOfficial5 жыл бұрын
var vc = prompt("Enter a letter: "); switch(vc){ case "a": console.log("Vowel"); break; case "e": console.log("Vowel"); break; case "i": console.log("Vowel"); break; case "o": console.log("Vowel"); break; case "u": console.log("Vowel"); break; default: console.log("consonant"); }
@redshotx25443 жыл бұрын
Lop
@anisul-islam3 жыл бұрын
I would convert the input as a small letter first. Cause you have set all the cases for the small letters. if someone gives the letter A as input, you know what will be the output :)
@rozykabir31762 жыл бұрын
Really like your tutorial.
@anisul-islam2 жыл бұрын
Thanks my dear 😊
@Thunder71BDАй бұрын
Task 5 Here is two way to complete this task here is the 1st way let latter = prompt('Enter your latter'); latter = latter.toLowerCase(); switch (latter) { case 'a': document.write("You Enter Vowel Latter "); break case 'e': document.write("You Enter Vowel Latter "); break case 'i': document.write("You Enter Vowel Latter "); break case 'o': document.write("You Enter Vowel Latter "); break case 'u': document.write("You Enter Vowel Latter "); break default: document.write("You Enter Consonant Latter"); } And Second way is let latter = prompt('Enter your latter'); latter = latter.toLowerCase(); switch (latter) { case 'a': case 'e': case 'i': case 'o': case 'u': document.write("You Enter Vowel Latter "); break default: document.write("You Enter Consonant Latter"); }
@JahidHassan-pt8yk5 жыл бұрын
Thanks sir for making this playlist
@dmlesar6363 жыл бұрын
const digit = prompt("Enter your number: "); digit1 = digit.toLowerCase(); switch (digit1) { case "a": console.log("Vowel"); break; case "e": console.log("Vowel"); break; case "i": console.log("Vowel"); break; case "o": console.log("Vowel"); break; case "u": console.log("Vowel"); break; default: console.log("Consonent") }
@shadat-hossain35002 жыл бұрын
Task 5 var letter = prompt("Enter any Letter : " ); letter= letter.toLowerCase(); switch(letter){ case "a": case "e": case "i": case "o": case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@DevJubayer3 жыл бұрын
task - 5 var letar = prompt('enter a letter : '); letar = letar.toLowerCase(); switch (letar){ case "a": document.write('vawel'); break; case "e": document.write('vawel'); break; case "i": document.write('vawel'); break; case "o": document.write('vawel'); break; case "u": document.write('vawel'); break; default: document.write('consonent'); }
@KhayrulBashar3 жыл бұрын
// Task-5 Check the vowel & consonant by using switch var letter = prompt('Enter the letter: '); letter = letter.toLowerCase(); switch (letter) { case ('a'): case ('e'): case ('i'): case ('o'): case ('u'): document.write('vowel'); break; default: document.write('consonant'); }
@md.mahadihasan50003 жыл бұрын
Task-5 var latter= prompt("Enter a letter"); letter = latter.toLowerCase(); switch(letter){ case "a": alert( latter + " is Vowel"); break; case "e": alert( latter + " is Vowel"); break; case "i": alert( latter + " is Vowel"); break; case "o": alert( latter + " is Vowel"); break; case "u": alert( latter + " is Vowel"); break; default: alert( latter + " is Consonent"); }
@mahmudulhasan70573 жыл бұрын
thanks ❤️
@shoponMsi4 жыл бұрын
var letter=prompt("Enter a letter : "); document.write("Letter"+" "+ letter +"= ") letter = letter.toLocaleUpperCase(); switch (letter){ case "A": case "E": case "I": case "O": case "U": document.write("Vowel"); break; default: document.write("Consonant"); }
@md.rasheduzzaman71062 жыл бұрын
Task:5 var letter=prompt("Enter a Letter:"); letter=letter.toLocaleLowerCase(); switch(letter){ case "a": console.log("vowel" + letter); break; case "e": console.log("vowel" + letter); break; case "i": console.log("vowel" + letter); break; case "o": console.log("vowel" + letter); break; case "u": console.log("vowel" + letter); break; default: console.log("Consonant" + letter); }
@core_Info3 жыл бұрын
var letter = prompt("Enter a charecter "); letter = letter.toUpperCase(); switch (letter) { case "A": document.write("Its vowel"); break; case "E": document.write("Its vowel"); break; case "I": document.write("Its vowel"); break; case "O": document.write("Its vowel"); break; case "U": document.write("Its vowel"); break; default: document.write("Its consonent"); break; }
@-B-MarufaAkter3 жыл бұрын
#Task-5 var letter =prompt("Enter a digit :"); letter= letter.toUpperCase(); switch(letter){ case "A": document.write("Vowel"); break; case "E": document.write("Vowel"); break; case "I": document.write("Vowel"); break; case "O": document.write("Vowel"); break; case "U": document.write("Vowel"); break; default: document.write("Consonant"); }
@HasibulIslam-md4jz2 жыл бұрын
// Identify vouel and consonant switch let latter = prompt("Enter any latter :"); latter = latter.toLowerCase(); switch(latter){ case "a": document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); break; default: document.write("Consonant") }
@ferdousaofficial2 жыл бұрын
const letter = prompt("Enter the letter: "); switch (letter) { case "a" || "e" || "i" || "o" || "u" || "A" || "E" || "I " || "O" || "U": console.log("The is vowel"); break; default: console.log("This is consonant"); }
@rhrabin12985 жыл бұрын
var letter=prompt("Eter any number : "); letter = letter.toLowerCase(); switch (letter){ case "a": document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@billionsoffact41044 жыл бұрын
After case keyword double quotation is mandatory I think Sir, but you describing like- "you may use double quotation", please clear this fact sir, and Obviously Loved your videos. Thanks
@shakilmolla64732 жыл бұрын
* used switch var letteer = prompt( "Enter a letter :"); letter = letter.toLowerCase(); switch (digite){ case "a": console.log (vowel); break; case"e": console.log (vowel); break: case "i": console.log (vowel); break: case "o": console.log (vowel); break: case"u": console.log (vowel); break: case "consonant": console.log (consonant); break: defult; console.log(not a digite); }
var letter = prompt("Enter any letter: "); letter= letter.toLowerCase(); switch(letter){ case "a": case "e": case "i": case "o": case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@DwnFall-n5y3 ай бұрын
Assalamuaulaikum sir Task 5 var letter = prompt("Enter your letter = "); letter = letter.toLowerCase(); switch (letter) { case"a": console.log("vowel"); break; case"e": console.log("vowel"); break; case"i": console.log("vowel"); break; case"o": console.log("vowel"); break; case"u": console.log("vowel"); default: console.log("consontnt"); }
@mdjaydulhaque96384 жыл бұрын
var Letter = prompt("Enter Any Letter: "); switch (letter) { case "a": document.write("a is a vowel"); break; case "e": document.write("e is a vowel"); break; case "i": document.write("i is a vowel"); break; case "o": document.write("o is a vowel"); break; case "u": document.write("u is a vowel"); break; case "w": document.write("w is a semi-vowel"); break; default: document.write("Consonant"); }
@AlimTorofder-y9f Жыл бұрын
var letter=prompt("Enter your letter"); letter=letter.toLocaleUpperCase() switch(letter){ case "A": case "E": case "I": case "O": case "U": console.log("vowel"); break; default: console.log("consonant") }
@HybridHeaven12 жыл бұрын
//task 5-------------------- var letter1 = prompt("enter a word => "); var letter2 = (""); letter1 = letter1.toUpperCase(); document.write("my word input is => " + " " + letter1 + letter2); switch (letter1) { case "A": case "E": case "I": case "O": case "U": document.write("VOWEL"); break; default: document.write("consonant"); }
@majharulislam14883 жыл бұрын
var letter = prompt('please write your letter:'); var change = letter.toUpperCase(); switch (change) { case 'A': document.write('vowel') break; case 'E': document.write('vowel') break; case 'I': document.write('vowel') break; case 'O': document.write('vowel') break; case 'U': document.write('vowel') break; default: document.write('consonant'); break; }
@rabiulislam31493 жыл бұрын
YOU ARE A BOSS
@asiyaakthermahi2211 Жыл бұрын
Task - 5 var vowel = prompt("Enter a letter:"); vowel = vowel.toLocaleLowerCase(); switch(vowel){ case "a": document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@ahnafahmed40737 ай бұрын
Task :- 05 var letter = prompt("Enter Letter :- "); letter = letter.toLowerCase(); switch (letter) { case "a": case "e": case "i": case "o": case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@nizamuddin11393 жыл бұрын
var letter = prompt('Enter a letter :'); letter = letter.toLowerCase(); if(letter == 'a' || letter == 'e' || letter == 'i' || letter =='o' ||letter =='u') console.log('vowel'); else console.log('consonant');
@mdyeamin35533 жыл бұрын
var digit = prompt ("Enter a number"); switch ( digit ) { case "0": document.write ("Zero") break; case "1": document.write ("One") break; case "2": document.write ("Tow") break; case "3": document.write ("Three") break; case "4": document.write ("Four") break; case "5": document.write ("Five") break; case "6": document.write ("Six") break; case "7": document.write ("Seven") break; case "8": document.write ("Eight") break; case "9": document.write ("Nine") break; default: document.write ("Unvelid Number") }
@po-uu5nw3 жыл бұрын
var letter= prompt("Enter any Letter"); letter=letter.toLowerCase(); switch (letter){ case "a": case "e": case "e": case "i": case "o": case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@AbdulKuddus-e6o6 ай бұрын
Sir jodi user vule number diye dey tahole to karo sathe match na korle default a chole jabe kintu oita to r consonant na tahole aita ki kore solve korbo?
@foradsvideo2 жыл бұрын
function add(x){ const r = x.toLowerCase() switch(r){ case 'a': case 'e': case'i': case 'o': case 'u': console.log('vowel letter') break; default : console.log('consenent') } } add('W')
@gamingsaikot26752 жыл бұрын
//Task: 05 var letter = prompt("Enter Your Letter: "); letter = letter.toLocaleLowerCase(); switch (letter) { case "a": document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); break; default: document.write("Consonent"); }
@rabiulislam84743 жыл бұрын
@Task 4 :Done sir var leter = prompt("Enter any letter"); switch (leter){ case "a": case "A": console.log("Vowel"); break; case "e": case "E": console.log("Vowel"); break; case "i": case "I": console.log("Vowel"); break; case "o": case "O": console.log("Vowel"); break; case "u": case "U": console.log("Vowel"); break; default: console.log("Consonant"); }
@AsifMahmudSiam Жыл бұрын
var letter= prompt("input a valid digit"); letter= letter.toLowerCase() switch(letter){ case"a": case"e": case"i": case"o": case"u": document.write("vowel") break; default: document.write("consonent") }
@msronyakhterrumy372511 ай бұрын
just wow
@sakib30444 жыл бұрын
// Task-5 var UI = prompt("What is your letter"); UI = UI.toLowerCase(); switch(UI){ case 'a': document.write('Vowel'); break; case 'e': document.write('Vowel'); break; case 'i': document.write('Vowel'); break; case 'o': document.write('Vowel'); break; case 'u': document.write('Vowel'); break; default: document.write('Consonant'); }
@_monmoy4 жыл бұрын
var vowel=prompt("Enter your world:"); vowel= vowel.toLowerCase(); switch(vowel){ case "a": document.write("vowel"); break; case "e": document.write("vowel"); break; case "i": document.write("vowel"); break; case "o": document.write("vowel"); break; case "u": document.write("vowel"); break; default: document.write("consonant"); }
@mdjuelhossain89089 ай бұрын
var letter =prompt("enter a digit"); var letter =letter.toLowerCase(); switch(letter){ case"a" || "e" || "i" || "o" || "u": console.log("vowel"); break; default: console.log("consonant"); }
@protamim_322 жыл бұрын
/* TASK 5 - Input letter and check it Vowel or consonant */ var letter = prompt("Enter letter to check it's vowel or consonant: "); letter = letter.toLocaleLowerCase(); switch (letter) { case "a": document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@farhad.hossain3 жыл бұрын
var vowel = prompt("Enter a vowel") switch(vowel){ case "a": document.write("It's a vowel"); break; case "b": document.write("It's a vowel"); break; case "e": document.write("It's a vowel"); break; case "i": document.write("It's a vowel"); break; case "o": document.write("It's a vowel"); break; default: document.write("It's not a vowel"); }
@Mahamudul_Hasan_Sami2 ай бұрын
Sir, ebhabe likha jabe ki?? var letter = prompt("Enter a letter : "); letter = letter.toLowerCase(); switch (letter) { case "a" || "e" || "I" || "o" || "u" : document.write("VOWEL"); break; default : document.write("CONSONANT"); }
@mdaminulislamsahin74142 жыл бұрын
Task: 05 var letter = prompt("Enter your letter : "); letter = letter.toLowerCase(); switch (letter){ case "a": console.log("Vowel") break; case "e": console.log("Vowel") break; case "i": console.log("Vowel") break; case "o": console.log("Vowel") break; case "u": console.log("Vowel") break; default: console.log("Consonant"); }
@Tanzimhossain22 жыл бұрын
Task 5: var letter = prompt("Enter any Letter: "); letter= letter.toLocaleLowerCase(); switch(letter){ case 'a': document.write("Vowel"); break; case 'e': document.write("Vowel"); break; case 'i': document.write("Vowel"); break; case 'o': document.write("Vowel"); break; case 'u': document.write("Vowel"); break; default: document.write("Consonant"); }
@KeyaBacher Жыл бұрын
Thankyou sir.
@thesohan9921 Жыл бұрын
var digit = prompt('Enter any alfavet'); switch (digit) { case "a": document.write('vowel'); break; case "u": document.write('vowal'); break; case "o": document.write('vowel'); break; case "i": document.write('vowel'); break; case "e": document.write('vowel'); break; default: document.write('consonent '); }
@siamahmed29094 жыл бұрын
var letter = prompt("Enter a letter: "); var letter = letter.toLowerCase(); switch(letter){ case "a": document.write(letter + " is a vowel"); break; case "e": document.write(letter + " is a vowel"); break; case "i": document.write(letter + " is a vowel"); break; case "o": document.write(letter + " is a vowel"); break; case "u": document.write(letter + " is a vowel"); break; default: document.write(letter + " is a consonant"); break; }
@nizamuddin11393 жыл бұрын
var num1 = prompt('Enter num1 :'); var num2 = prompt('Enter num2 :'); var num3 = prompt('Enter num2 :'); if(num1>num2 && num1>num3) console.log(' Large number' + num1); else if(num2>num1 && num2>num3) console.log(' Large number' + num2); else console.log(' Large number' + num3);
@hasan36062 жыл бұрын
task = 5 var leter = prompt("Enter a leter :"); leter = leter.toLocaleLowerCase(); switch (leter) { case "a": document.write("It is Vowel"); break; case "e": document.write("It is Vowel"); break; case "i": document.write("It is Vowel"); break; case "o": document.write("It is Vowel"); break; default: document.write("It is Consonant"); }
@letsbeprogrammers35733 жыл бұрын
var letter =prompt("Input a letter to check it is vowel or consonant"); letter = letter.toLowerCase(); switch(letter){ case "a": document.write("Vowel") break; case "e": document.write("Vowel") break; case "i": document.write("Vowel") break; case "o": document.write("Vowel") break; case "u": document.write("Vowel") break; default: document.write("Consonant"); }
@mozafforchyoki2 жыл бұрын
var letter = prompt(“Enter any letter”); letter = letter.toLowerCase(); switch(letter){ case “a” : case “e” : case “i” : case “o” : case “u” : console.log(“Vowel”); break; default: console.log(“Consonant ”); }
@bappy7382 жыл бұрын
var lettervc = prompt("Enter the word "); lettervc = lettervc.toLowerCase(); switch(lettervc){ case "a": document.write("This is Vowel"); break; case "e": document.write("This is Vowel"); break; case "i": document.write("This is Vowel"); break; case "o": document.write("This is Vowel"); break; case "u": document.write("This is Vowel"); break; default: document.write("This is Consonent"); }
@shekharchandrabiswas772 жыл бұрын
Task = 5 var letter = prompt("Enter a Letter : "); letter = letter.toLowerCase(); switch(letter){ case "a": // console.log("Vowel"); // break; case "e": // console.log("Vowel"); // break; case "i": // console.log("Vowel"); // break; case "o": // console.log("Vowel"); // break; case "u": console.log("Vowel"); break; default: console.log("Consonant"); }
@ramisanawar96975 жыл бұрын
Sir. After log in fb with javascript or python or php or any other sources is it possible to speedly or rapidly scroll down into a fb group? I need to copy all posts and comments of a group at very short time.
var letter = prompt("enter a letter:"); letter=letter.toLowerCase(); switch(letter){ case "a": console.log("vowel"); break; case "e": console.log("vowel"); break; case "i": console.log("vowel"); break; case "o": console.log("vowel"); break; case "u": console.log("vowel"); break; default: console.log("consonant") } Task:5 done sir
@mdashraful_hossain2 жыл бұрын
Task -5 var character = prompt("Enter any character : "); character = character.toLowerCase(); switch(character){ case "a": document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); default: document.write("Consonant"); }
@touhidiqbalsagar35272 жыл бұрын
var letter = prompt("Enter the letter: "); document.write(letter, " is "); letter = letter.toLowerCase(); switch(letter) { case'a': case'e': case'i': case'o': case'u': document.write("Vowel"); break; default: document.write("Consonant"); }
@iamopusaha2 жыл бұрын
var task5 = prompt("Input a latter in here"); task5 = task5.toLocaleLowerCase(); switch (task5) { case "a" : document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
@abdullahmuhim85343 жыл бұрын
tobe switch( ) eta ki khetre use korte parbo jeta if/else diye krte parbo na?
@dilrubaakhter95823 жыл бұрын
var letter=prompt("Enter Your Letter:"); letter=letter.toLocaleLowerCase(); switch(letter){ case "a": case "e": case "i": case "o": case "u": document.write("Vowel"); break; default: document.write("Consonant"); }
Assignment-5 //switch, case, default, break var letter =prompt("Enter any letter:"); letter = letter.toLowerCase(); switch(letter){ case "a": console.log("vowel"); break; case "e": console.log("vowel"); break; case "i": console.log("vowel"); break; case "o": console.log("vowel"); break; case "u": console.log("vowel"); break; default: console.log("consonant"); }
@mjrjuri64744 жыл бұрын
THANKS A LOT
@nayem63864 жыл бұрын
Task 5 : var letter = prompt("Enter a letter to check it's Vowel or Consonant : "); letter = letter.toUpperCase(); switch (letter) { case "A": document.write( letter + " is a Vowel"); break; case "E": document.write( letter + " is a Vowel"); break; case "I": document.write( letter + " is a Vowel"); break; case "O": document.write( letter + " is a Vowel"); break; case "U": document.write( letter + " is a Vowel"); break; default: document.write( letter + " is a Consonant"); }
@mdminhajulislam3525 Жыл бұрын
Task 5: method 1: var letter = prompt("Enter a letter"); letter = letter.toLowerCase(); switch (letter){ case "a": document.write("Vowel"); break; case "b": document.write("Vowel"); break; case "e": document.write("Vowel"); break; case "i": document.write("Vowel"); break; case "o": document.write("Vowel"); break; case "u": document.write("Vowel"); break; default: document.write("Consonant"); } method 2: var letter = prompt("Enter a letter"); letter = letter.toLowerCase(); switch (letter){ case "a": case "e": case "i": case "o": case "u": console.log("vowel"); break; default: console.log("Consonant"); }