Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

LEARN JAVASCRIPTWhale Talk

input = "You Are All Wee Gillis";
vowels = ['a','e','i','o','u'];
whaleTalk = [];
input.split('').filter(v => vowels.includes(v.toLowerCase())).forEach(x => {
  if (x === 'e' || x === 'u') {
    whaleTalk.push((x + x));
  } else {
    whaleTalk.push(x);
  }
});
console.log(whaleTalk.join('').toUpperCase())    //  OUUAEEAEEEEII
Comment

PREVIOUS NEXT
Code Example
Javascript :: denuncia perturbação 
Javascript :: js no new line console.log 
Javascript :: timeout for javascript 
Javascript :: last underscore 
Python :: months list python 
Python :: python check if path does not exist 
Python :: no module psycopg2 
Python :: suppres tensorflow warnings 
Python :: number table python 
Python :: selenium Keys enter python 
Python :: max columns in python 
Python :: python current year 
Python :: how to open any program on python 
Python :: torch device 
Python :: python 1 second delay 
Python :: python selenium go back 
Python :: python change plot transparency 
Python :: clear outpur jupyter 
Python :: check filed exist in object python 
Python :: colab save figure 
Python :: Drop specific column in data 
Python :: python delete directory if exists 
Python :: python toast notification 
Python :: change specific column name pandas 
Python :: what skills do you need to master pvp in minecraft 
Python :: track phone number location using python 
Python :: pandas loop through rows 
Python :: python remove last character from string 
Python :: numpy array to torch tensor 
Python :: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(ChromeDriverManager().install()) 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =