Run Javascript in Sublime

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
€33.96
List Price:  €67.93
You save:  €33.96
£29.34
List Price:  £58.70
You save:  £29.35
CA$54.34
List Price:  CA$108.71
You save:  CA$54.36
A$55.06
List Price:  A$110.15
You save:  A$55.08
S$50.68
List Price:  S$101.38
You save:  S$50.70
HK$313.35
List Price:  HK$626.78
You save:  HK$313.43
CHF 31.14
List Price:  CHF 62.30
You save:  CHF 31.15
NOK kr370.88
List Price:  NOK kr741.86
You save:  NOK kr370.97
DKK kr253.77
List Price:  DKK kr507.60
You save:  DKK kr253.83
NZ$66.99
List Price:  NZ$134
You save:  NZ$67.01
د.إ146.86
List Price:  د.إ293.76
You save:  د.إ146.90
৳4,905.57
List Price:  ৳9,812.36
You save:  ৳4,906.79
₹3,778.69
List Price:  ₹7,558.33
You save:  ₹3,779.64
RM157.08
List Price:  RM314.20
You save:  RM157.12
₦54,543.96
List Price:  ₦109,101.56
You save:  ₦54,557.60
₨11,120.89
List Price:  ₨22,244.58
You save:  ₨11,123.68
฿1,287.27
List Price:  ฿2,574.87
You save:  ฿1,287.60
₺1,808.77
List Price:  ₺3,618.01
You save:  ₺1,809.23
B$196.43
List Price:  B$392.91
You save:  B$196.48
R654.23
List Price:  R1,308.63
You save:  R654.40
Лв66.42
List Price:  Лв132.86
You save:  Лв66.44
₩57,891.92
List Price:  ₩115,798.32
You save:  ₩57,906.39
₪116.18
List Price:  ₪232.40
You save:  ₪116.21
₱2,428.51
List Price:  ₱4,857.63
You save:  ₱2,429.11
¥6,235.60
List Price:  ¥12,472.77
You save:  ¥6,237.16
MX$689.53
List Price:  MX$1,379.24
You save:  MX$689.70
QR145.82
List Price:  QR291.69
You save:  QR145.86
P542.32
List Price:  P1,084.78
You save:  P542.45
KSh5,164.70
List Price:  KSh10,330.70
You save:  KSh5,166
E£2,114.87
List Price:  E£4,230.27
You save:  E£2,115.40
ብር6,280.42
List Price:  ብር12,562.42
You save:  ብር6,282
Kz36,730.81
List Price:  Kz73,470.81
You save:  Kz36,740
CLP$36,203.74
List Price:  CLP$72,416.54
You save:  CLP$36,212.80
CN¥272.39
List Price:  CN¥544.85
You save:  CN¥272.46
RD$2,377.75
List Price:  RD$4,756.10
You save:  RD$2,378.35
DA5,285.68
List Price:  DA10,572.69
You save:  DA5,287.01
FJ$87.24
List Price:  FJ$174.50
You save:  FJ$87.26
Q305.18
List Price:  Q610.44
You save:  Q305.25
GY$8,364.40
List Price:  GY$16,730.90
You save:  GY$8,366.49
ISK kr4,876.78
List Price:  ISK kr9,754.78
You save:  ISK kr4,878
DH368.82
List Price:  DH737.74
You save:  DH368.92
L687.82
List Price:  L1,375.82
You save:  L687.99
ден2,100.66
List Price:  ден4,201.85
You save:  ден2,101.19
MOP$322.71
List Price:  MOP$645.51
You save:  MOP$322.79
N$667.85
List Price:  N$1,335.86
You save:  N$668.01
C$1,468.03
List Price:  C$2,936.43
You save:  C$1,468.40
रु6,080.60
List Price:  रु12,162.73
You save:  रु6,082.12
S/139.90
List Price:  S/279.84
You save:  S/139.94
K173.86
List Price:  K347.76
You save:  K173.90
SAR150.03
List Price:  SAR300.10
You save:  SAR150.07
ZK753.23
List Price:  ZK1,506.66
You save:  ZK753.42
L178.92
List Price:  L357.89
You save:  L178.97
Kč826.42
List Price:  Kč1,653.06
You save:  Kč826.63
Ft12,200.95
List Price:  Ft24,404.95
You save:  Ft12,204
SEK kr367.80
List Price:  SEK kr735.70
You save:  SEK kr367.89
ARS$55,696.46
List Price:  ARS$111,406.85
You save:  ARS$55,710.38
Bs275.73
List Price:  Bs551.54
You save:  Bs275.80
COP$147,966.18
List Price:  COP$295,969.37
You save:  COP$148,003.18
₡18,188.71
List Price:  ₡36,381.96
You save:  ₡18,193.25
L1,060.78
List Price:  L2,121.84
You save:  L1,061.05
₲241,806.37
List Price:  ₲483,673.20
You save:  ₲241,866.83
$U1,606.91
List Price:  $U3,214.23
You save:  $U1,607.32
zł143.75
List Price:  zł287.54
You save:  zł143.79
Already have an account? Log In

Transcript

We are going to learn two ways to run our JavaScript code. The first one is by using the sublime text here, this text editor, we are going to run our JavaScript code. So I'm going to here create a simple code, which is console dot log. And this is just a function in JavaScript that logs or prints something on the console. Just here, you pass what you want to print. So here I'm going to say this is a test.

And I am going to add Of course, you need to add at the end semicolon and click on File and then save. Now you saved your file. The second thing that you need to do is to click on Tools and the inbuilt system and make sure that you have selected JavaScript Then you need to click on belt, or you need to click on command and B, or control and be in Windows, you will always find the shortcut, the shortcut for the build command here besides the word command, besides the word belt, so here it says Ctrl or Command and b in in iMac, and in Windows control, and B, so click on build. And as you can see, this is our console. And here it was printed. This is a test and now our JavaScript code runs successfully.

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.