javascript - Capitalizing values -


i'm going have apologize how simple question going be. literally on chapter 2 trying learn javascript, , preparing myself come.

my questions refers chapter 2 of eloquent javascript's section on variables. in websites js sandbox uses example:

var luigisdebt = 140; luigisdebt = luigisdebt - 35; console.log(luigisdebt); // → 105 105 

got no problem! test around bit more:

var luigisdebt = 140; luigisdebt = luigisdebt - 35; luigisdebt = luigisdebt - 5 console.log(luigisdebt); 100 

however if mess around capitalization this:

var luigisdebt = 140; luigisdebt = luigisdebt - 35; luigisdebt = luigisdebt - 5 console.log(luigisdebt); 95 

my output becomes incorrect 95, instead of correct 100.

thanks other posts i've learned camelcase, constructer functions , pascalcase. still can't figure out why output changes upper , lower case?

luigisdebt not defined in code, should answer 105. define before using it.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -