Declaration of varibles

sir in previous video practice.js we have used “=” sign for the declaration of the variable and declaration of the function
but in this video oops.js we are using " :" for the variable declaration
also if i am changing this i am getting errors

Hey @pankajsingh
In practice.js we were declaring variables in a function for which we use =
In oops.js we were assigning values to object which is like a map for which we use :
You can read more on javascript variable and object declaration

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.