String javascript lastIndexof ()

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