JavaScript String LastIndexof ()

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