Difference between Val and const?

Val and const are immutable and read only the value assigned cann’t be reassigned later on the program.But one major difference is for Val we can pass value during run time and for const we have to mention it on compile time itself.

Example

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Beginner's Guide to JavaScript Functions & Parameters.

Build a Serverless full stack app using firebase cloud functions.

Performance tuning Data Binding in Angular with OnPush, Immutables and Observables

Build Simple Routes using Node & Mongo DB with Postman Testing

Five ways to clear an array in JavaScript

Here is how to authenticate users using Vue.js and Firebase

Javascript’s new Date() 😱

These JavaScript Array Functions Will Make Your Life Easier

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pandiyan Mani

Pandiyan Mani

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe

More from Medium

2021 How to develop android application in Eclipse IDE on windows os

Rx-Java Single and mergeDelayError Use

Day66 | 100DaysOfGADS

Introduction to PWA & TWA