JavaScript String lastIndexof ()

let str = "Please locate where 'locate' occurs!";
str.lastIndexOf("locate");
naly moslih