Declare Constant


/ Published in: JavaScript
Save to your folder(s)

Defines a new constant
Notice how I capitalized the name. It is not mandatory, but it is a programming convention often used in C, so you will sometimes see constants capitalized in JavaScript as well.


Copy this code and paste it in your HTML
  1. const ERR_INVALID_USERID;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.