ALGORITHMS2

ALGORITHMS2

by SHELDON PASCIAK

HTML

<div id="banner-message">
  <button>RUN</button>
  <div id="result">  
  </div>
</div>

CSS

/*

Write a function that returns the number of vowels
used in a string. Vowels are the characters 'a', 'e'
'i', 'o', and 'u'.
--- Examples
vowels('Hi There!') --> 3
vowels('Why do you ask?') --> 4
vowels('Why?') --> 0

*/

JavaScript

// find elements
var banner = $("#banner-message")
var button = $("button")


button.on("click", () => {

let inputFromUser = prompt("Enter something:","default something");

alert(inputFromUser);

 
})