0

this.changeName does it has to be that exactly phrase

Hello world: So my question is this.changeName objectmethod name has to be always like that..? Can i say like this.changeCar or this.changeHouse or this.changeDog you get the idea right..? Thanks everybody

18th Aug 2017, 12:00 PM
Jamhur Davronov
Jamhur Davronov - avatar
3 Respostas
+ 2
there are some rules while creating variables 1-they start with a letter;you can not start with numbers 2-dont use reserved words,Escape sequences 3-try to use camel typo check this link; you may like it https://mothereff.in/js-variables
19th Aug 2017, 6:07 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
you can set any name of your methods
18th Aug 2017, 2:02 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar
+ 1
I see got it man I appreciated again you answer
19th Aug 2017, 6:11 AM
Jamhur Davronov
Jamhur Davronov - avatar