how to get index of a character in string in javascript code example
Example 1: indexof javascript
Array.indexOf(searchElement, fromIndex)
Example 2: .index of javascript
let monTableau = ['un', 'deux','trois', 'quatre'] ;
console.log(monTableau.indexOf('trois')) ;