constaTxt='You cannot end a sentence with because because because is a conjunction'
console.log(aTxt.indexOf('b'))// 31
console.log(aTxt.lastIndexOf('e'))// 54
console.log(aTxt.substr(31,23))
// Exercises: Level 3
//1
constanyTxt='Love is the best thing in this world. Some found their love and some are still looking for their love.'
console.log(anyTxt.match(/love/gi))
//2
console.log(aTxt.match(/because/gi))
// that was unnecessarily hard to find how to escape $ but it's \ i guess
constsentence='%I $am@% a %tea@cher%, &and& I lo%#ve %te@a@ching%;. The@re $is no@th@ing; &as& mo@re rewarding as educa@ting &and& @emp%o@weri@ng peo@ple. ;I found tea@ching m%o@re interesting tha@n any ot#her %jo@bs. %Do@es thi%s mo@tiv#ate yo@u to be a tea@cher!? %Th#is 30#Days&OfJavaScript &is al@so $the $resu@lt of &love& of tea&ching'