What are Variables - 2

1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$39.99
List Price:  $79.99
You save:  $40
€34.05
List Price:  €68.11
You save:  €34.06
£29.87
List Price:  £59.74
You save:  £29.87
CA$55.04
List Price:  CA$110.11
You save:  CA$55.06
A$60.14
List Price:  A$120.31
You save:  A$60.16
S$51.55
List Price:  S$103.12
You save:  S$51.56
HK$311.21
List Price:  HK$622.50
You save:  HK$311.29
CHF 31.83
List Price:  CHF 63.68
You save:  CHF 31.84
NOK kr405.02
List Price:  NOK kr810.15
You save:  NOK kr405.12
DKK kr254.38
List Price:  DKK kr508.84
You save:  DKK kr254.45
NZ$69.11
List Price:  NZ$138.24
You save:  NZ$69.13
د.إ146.86
List Price:  د.إ293.76
You save:  د.إ146.90
৳4,885
List Price:  ৳9,771.23
You save:  ৳4,886.22
₹3,627.99
List Price:  ₹7,256.89
You save:  ₹3,628.90
RM163.65
List Price:  RM327.35
You save:  RM163.70
₦58,044.68
List Price:  ₦116,103.88
You save:  ₦58,059.20
₨11,202.82
List Price:  ₨22,408.45
You save:  ₨11,205.62
฿1,256.66
List Price:  ฿2,513.64
You save:  ฿1,256.98
₺1,707.62
List Price:  ₺3,415.68
You save:  ₺1,708.05
B$216.73
List Price:  B$433.52
You save:  B$216.78
R672.62
List Price:  R1,345.41
You save:  R672.79
Лв66.60
List Price:  Лв133.22
You save:  Лв66.62
₩58,545.79
List Price:  ₩117,106.22
You save:  ₩58,560.43
₪128.39
List Price:  ₪256.82
You save:  ₪128.43
₱2,357.45
List Price:  ₱4,715.49
You save:  ₱2,358.04
¥6,197.16
List Price:  ¥12,395.87
You save:  ¥6,198.71
MX$718.74
List Price:  MX$1,437.67
You save:  MX$718.92
QR145.68
List Price:  QR291.40
You save:  QR145.72
P529.65
List Price:  P1,059.44
You save:  P529.78
KSh5,156.31
List Price:  KSh10,313.91
You save:  KSh5,157.60
E£1,899.11
List Price:  E£3,798.70
You save:  E£1,899.58
ብር6,246.01
List Price:  ብር12,493.58
You save:  ብር6,247.57
Kz36,476.63
List Price:  Kz72,962.39
You save:  Kz36,485.76
CLP$36,530.86
List Price:  CLP$73,070.86
You save:  CLP$36,540
CN¥281.81
List Price:  CN¥563.70
You save:  CN¥281.88
RD$2,541.24
List Price:  RD$5,083.13
You save:  RD$2,541.88
DA5,186.52
List Price:  DA10,374.34
You save:  DA5,187.81
FJ$90.12
List Price:  FJ$180.28
You save:  FJ$90.15
Q306.16
List Price:  Q612.41
You save:  Q306.24
GY$8,362.90
List Price:  GY$16,727.89
You save:  GY$8,364.99
ISK kr5,053.53
List Price:  ISK kr10,108.33
You save:  ISK kr5,054.80
DH367.75
List Price:  DH735.59
You save:  DH367.84
L675.74
List Price:  L1,351.65
You save:  L675.91
ден2,096.31
List Price:  ден4,193.14
You save:  ден2,096.83
MOP$320.53
List Price:  MOP$641.15
You save:  MOP$320.61
N$674.40
List Price:  N$1,348.98
You save:  N$674.57
C$1,471.23
List Price:  C$2,942.83
You save:  C$1,471.59
रु5,784.09
List Price:  रु11,569.63
You save:  रु5,785.54
S/134.58
List Price:  S/269.19
You save:  S/134.61
K172.28
List Price:  K344.61
You save:  K172.32
SAR150.04
List Price:  SAR300.11
You save:  SAR150.07
ZK922.40
List Price:  ZK1,845.03
You save:  ZK922.63
L173.34
List Price:  L346.73
You save:  L173.38
Kč827.02
List Price:  Kč1,654.26
You save:  Kč827.23
Ft13,113.88
List Price:  Ft26,231.05
You save:  Ft13,117.16
SEK kr371.45
List Price:  SEK kr743
You save:  SEK kr371.54
ARS$57,616.57
List Price:  ARS$115,247.56
You save:  ARS$57,630.98
Bs276.20
List Price:  Bs552.48
You save:  Bs276.27
COP$152,086.76
List Price:  COP$304,211.55
You save:  COP$152,124.79
₡19,995.94
List Price:  ₡39,996.88
You save:  ₡20,000.94
L1,052.42
List Price:  L2,105.11
You save:  L1,052.68
₲268,508.06
List Price:  ₲537,083.27
You save:  ₲268,575.20
$U1,566.95
List Price:  $U3,134.29
You save:  $U1,567.34
zł143.67
List Price:  zł287.38
You save:  zł143.71
Already have an account? Log In

Transcript

So let's now create a variable in our file here. So for example, I'm going to create a variable called var name equals to most. And as you can see, now, this is a variable where the label is is the name and the value that is inside that container is a string of most of a name. And of course variables. There are many forms of variables you can store, not just the strings, you can store a numbers, integers, doubles and arrays, many things, which we are going to talk about later. We can also for example, create a variable called age equals to 25 and semicolon.

And as you can see, now we have another variable. And once you've created that variable, a specific memory location is going to be given To this variable age, and that memory location is going to store the value inside it which is 25. The same goes for the name, a variable, a memory location is going to be created, and the value of that memory location is going to be most

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.