in Education by
title basically. The question says create a function that takes in a string and returns true when the string starts and ends with a vowel. I must have read every possibly helpful/similar thread on here and still stuck. Please help Tried too many things to even list. Its been literally hours I've been bashing my head against this problem. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
function test( word ){ word = word.toUpperCase(); let last = word[ word.length - 1 ]; let vowels = [ 'A', 'E', 'I', 'O', 'U' ] if( vowels.includes( word[0]) && vowels.includes( last ) ){ return true }else{ return false } }

Related questions

0 votes
    title basically. The question says create a function that takes in a string and returns true when the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    what tag tells the browser where the HTML document starts and ends Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    If a letter is chosen at random from the English alphabet, find the probability that the letter chosen is (i) a ... (ii) a cansonant. Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
0 votes
    If a letter is chosen at random from the English alphabet, find the probability that the letter is chosen is (i) ... (ii) a consonant Select the correct answer from above options...
asked Nov 22, 2021 in Education by JackTerrance
0 votes
    If the function in a console is.matrix(X) returns true then X can be considered as a _______ (a) Matrix ... Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    HOW DO I SORT THIS BY BIRTHYEAR IN ASCENDING ORDER? I'm distance learning student and have no help. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 5, 2022 in Education by JackTerrance
0 votes
    Most computers have BIOS which can be configured so that it can ask for a password once the system starts. ... -for-Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Nov 1, 2021 in Education by JackTerrance
0 votes
    Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 31, 2021 in Education by JackTerrance
0 votes
    Which algorithm takes two sentences as input and returns a Unifier? Inference Hill-Climbing Unify algorithm Depth-first search...
asked Mar 8, 2021 in Technology by JackTerrance
0 votes
    Which of these methods of class String is used to check whether a given object starts with a particular ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    state true or false Formula in Excel starts with an equal to (=) sign. Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    If a single letter is selected at random from the word "PROBABILITY", then the probability that it is a vowel is A. 1 ... 2 11 D. 3 11 Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
0 votes
    write a java program to accept alphabet and find out vowel or consonant Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    I am trying to pass a dataString to to an ajax call using JQuery. In the call, I construct the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
...