How to Count Vowels in JavaScript - Code Snippet

How to perform 'Count Vowels' in JavaScript.

example.js
// Task: Count Vowels
// Language: JavaScript

function countVowels() {
    // Implementation for Count Vowels
    const result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Count Vowels
    console.log("Done");
}
AdSense Slot