Is there a root keyword in JavaScript or why does Sublime display it like this?

I used a variable called root

in a recent js project and Sublime3 displayed it like this: enter image description here

So I am wondering if there is a root keyword in js, and if so, what does it do ... Otherwise I would like to know a way to stop sublime3 from displaying it differently ... The console, however, says ReferenceError: root is not defined

in me enter it there.

Hope you can help :)

+3


source to share


2 answers


root

was used as a variable in Node.js, however it was deprecated in version 6.

The announcement comes from this file in Sublime.



UPDATE : To remove a syntax rule, install PackageResourceViewer

as instructed here and then open the file JavaScript.sublime-syntax

, find the word root (currently only one) and delete it (and the next character |

). Note that you need to run Sublime as an administrator on Windows to edit the file.

+6


source


It seems that root is not a javascript keyword:



https://www.w3schools.com/js/js_reserved.asp

0


source







All Articles