"of" is not lexically a keyword (as far as I can tell). However, in ECMAScript 2018 and later, it functions as one (in the "for…of" construction), so it should probably be treated as one by js-mode. Certainly, this seems to be common practice, looking at samples of JavaScript online (including in the standard). -- https://rrt.sc3d.org