This program allows users to search for a specific letter within a given string and identify the exact position of a chosen occurrence. The user inputs a sentence, selects a target letter, and specifies which occurrence of that letter they want to locate (such as the first, second, or third appearance). The program then scans the string, counts each occurrence of the selected letter, and displays the index of the requested occurrence. If the specified occurrence does not exist, the program informs the user accordingly. This tool helps demonstrate string traversal, indexing, and conditional logic in JavaScript.
Hold "Ctrl + Shift" & press "j" to see the results!
Note: Console Based!