Can I declare a variable as CONSTANT in JavaScript?



Can I declare a variable as CONSTANT in JavaScript?..

Answer / Diwan Singh Kanyal

No, JavaScript does not have built-in support for constant variables. However, you can create immutable constants by naming them with an all-caps convention (e.g., MY_CONST).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How do I turn on javascript on my phone?

1 Answers  


Can you run javascript in notepad?

1 Answers  


How can you convert the string of any base to integer in JavaScript?

1 Answers  


What are javascript properties?

1 Answers  


Is null in javascript?

1 Answers  


What is "strict mode" and how is it used in JavaScript?

1 Answers  


What is difference between array.splice() and array.slice() method in javascript?

1 Answers  


Auto insurance project..How to explain project in interviews.Using Automation tool (selenium).

1 Answers  


If we want to return the character from a specific index which method is used?

1 Answers  


Which company developed JavaScript?

1 Answers  


How to Object.entries( ) In JavaScript ?

1 Answers  


I need project details about WEB CONTENT FILTERING USING NEURAL NETWORKS and how to explain it....plz help me in this topic.....

1 Answers  


Categories