The Semicolon

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.07
List Price:  €68.16
You save:  €34.08
£29.70
List Price:  £59.41
You save:  £29.71
CA$54.69
List Price:  CA$109.40
You save:  CA$54.70
A$60.93
List Price:  A$121.88
You save:  A$60.95
S$51.22
List Price:  S$102.46
You save:  S$51.23
HK$313.89
List Price:  HK$627.86
You save:  HK$313.97
CHF 31.86
List Price:  CHF 63.73
You save:  CHF 31.86
NOK kr406.11
List Price:  NOK kr812.34
You save:  NOK kr406.22
DKK kr254.36
List Price:  DKK kr508.79
You save:  DKK kr254.42
NZ$66.54
List Price:  NZ$133.10
You save:  NZ$66.55
د.إ146.88
List Price:  د.إ293.80
You save:  د.إ146.92
৳4,886.39
List Price:  ৳9,774.01
You save:  ৳4,887.61
₹3,459.69
List Price:  ₹6,920.24
You save:  ₹3,460.55
RM168.81
List Price:  RM337.67
You save:  RM168.86
₦61,111.51
List Price:  ₦122,238.31
You save:  ₦61,126.80
₨11,356.74
List Price:  ₨22,716.33
You save:  ₨11,359.58
฿1,294.69
List Price:  ฿2,589.71
You save:  ฿1,295.02
₺1,621.82
List Price:  ₺3,244.05
You save:  ₺1,622.22
B$220.86
List Price:  B$441.79
You save:  B$220.92
R709.36
List Price:  R1,418.90
You save:  R709.54
Лв66.65
List Price:  Лв133.31
You save:  Лв66.66
₩55,273.38
List Price:  ₩110,560.58
You save:  ₩55,287.20
₪134.39
List Price:  ₪268.82
You save:  ₪134.42
₱2,284.17
List Price:  ₱4,568.91
You save:  ₱2,284.74
¥5,913.44
List Price:  ¥11,828.36
You save:  ¥5,914.92
MX$742.70
List Price:  MX$1,485.59
You save:  MX$742.88
QR146.14
List Price:  QR292.31
You save:  QR146.17
P534.19
List Price:  P1,068.52
You save:  P534.32
KSh5,166.70
List Price:  KSh10,334.70
You save:  KSh5,168
E£1,961.79
List Price:  E£3,924.07
You save:  E£1,962.28
ብር5,513.20
List Price:  ብር11,027.79
You save:  ብር5,514.58
Kz36,469.08
List Price:  Kz72,947.28
You save:  Kz36,478.20
CLP$38,000.49
List Price:  CLP$76,010.49
You save:  CLP$38,010
CN¥286.62
List Price:  CN¥573.32
You save:  CN¥286.70
RD$2,425.36
List Price:  RD$4,851.34
You save:  RD$2,425.97
DA5,175.74
List Price:  DA10,352.78
You save:  DA5,177.03
FJ$89.68
List Price:  FJ$179.39
You save:  FJ$89.71
Q306.76
List Price:  Q613.60
You save:  Q306.84
GY$8,362.63
List Price:  GY$16,727.35
You save:  GY$8,364.72
ISK kr4,845.98
List Price:  ISK kr9,693.18
You save:  ISK kr4,847.20
DH359
List Price:  DH718.09
You save:  DH359.09
L672.66
List Price:  L1,345.50
You save:  L672.83
ден2,094.31
List Price:  ден4,189.15
You save:  ден2,094.83
MOP$323.18
List Price:  MOP$646.45
You save:  MOP$323.26
N$704.60
List Price:  N$1,409.37
You save:  N$704.77
C$1,471.06
List Price:  C$2,942.50
You save:  C$1,471.43
रु5,524.01
List Price:  रु11,049.41
You save:  रु5,525.39
S/142.13
List Price:  S/284.30
You save:  S/142.17
K168.09
List Price:  K336.23
You save:  K168.13
SAR150.02
List Price:  SAR300.08
You save:  SAR150.06
ZK932.27
List Price:  ZK1,864.78
You save:  ZK932.50
L172.81
List Price:  L345.66
You save:  L172.85
Kč836.25
List Price:  Kč1,672.71
You save:  Kč836.46
Ft13,515.86
List Price:  Ft27,035.11
You save:  Ft13,519.24
SEK kr381.16
List Price:  SEK kr762.43
You save:  SEK kr381.26
ARS$50,907.30
List Price:  ARS$101,827.33
You save:  ARS$50,920.03
Bs276.21
List Price:  Bs552.49
You save:  Bs276.28
COP$161,956.77
List Price:  COP$323,954.05
You save:  COP$161,997.27
₡20,177.95
List Price:  ₡40,360.95
You save:  ₡20,183
L1,046.66
List Price:  L2,093.58
You save:  L1,046.92
₲299,382.10
List Price:  ₲598,839.07
You save:  ₲299,456.96
$U1,601.76
List Price:  $U3,203.93
You save:  $U1,602.16
zł145.02
List Price:  zł290.08
You save:  zł145.06
Already have an account? Log In

Transcript

In JavaScript, the semicolon is very important. Each line you write must end with a semicolon. Otherwise you will get an error. So for example, here, when I create a variable called my name equals to, for example, almost here, it should end with a semicolon. And it's very important to do so some, but by the way, some text editors just do that for you in the background. So if I save and run, I will not get an error.

But most text editors don't do. Don't do that. And also in other programming languages, it's very important to use the semicolon. So also, to always keep in mind that each line you write must, must end with a semicolon. Another example is with the console. For example, the console log Here this is called the function and here I should when I write this expression or this line, I should end it with a semicolon.

So always keep in mind that each line you write must end with a semicolon. And of course not the not the line itself, but the expression. So the expression could take many lines, sometimes the expression can take many lines, not just one line. So once you create the expression, it must end with a semicolon.

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.