上QQ阅读APP看书,第一时间看更新
Creating a variable with an integer (int)
Now, let's create a variable with an int called age and set it to our age (or whatever you want your age to be) by adding the following:
var age = 40
Our program now knows that age is an int. You should see both your name and age in the Results Panel, just like you did previously: