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:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.67.251