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
€34.32
List Price:  €68.66
You save:  €34.33
£30.02
List Price:  £60.06
You save:  £30.03
CA$55.28
List Price:  CA$110.58
You save:  CA$55.29
A$60.26
List Price:  A$120.53
You save:  A$60.27
S$51.84
List Price:  S$103.70
You save:  S$51.86
HK$311.11
List Price:  HK$622.31
You save:  HK$311.19
CHF 32.16
List Price:  CHF 64.33
You save:  CHF 32.17
NOK kr404.69
List Price:  NOK kr809.48
You save:  NOK kr404.79
DKK kr256.40
List Price:  DKK kr512.86
You save:  DKK kr256.46
NZ$69.13
List Price:  NZ$138.28
You save:  NZ$69.15
د.إ146.86
List Price:  د.إ293.76
You save:  د.إ146.90
৳4,890.44
List Price:  ৳9,782.11
You save:  ৳4,891.66
₹3,602.19
List Price:  ₹7,205.29
You save:  ₹3,603.09
RM164.47
List Price:  RM328.99
You save:  RM164.52
₦58,019.09
List Price:  ₦116,052.69
You save:  ₦58,033.60
₨11,206.12
List Price:  ₨22,415.04
You save:  ₨11,208.92
฿1,273.62
List Price:  ฿2,547.56
You save:  ฿1,273.94
₺1,701.47
List Price:  ₺3,403.36
You save:  ₺1,701.89
B$218.34
List Price:  B$436.75
You save:  B$218.40
R679.23
List Price:  R1,358.63
You save:  R679.40
Лв67.07
List Price:  Лв134.16
You save:  Лв67.09
₩58,662.66
List Price:  ₩117,340
You save:  ₩58,677.33
₪128.92
List Price:  ₪257.87
You save:  ₪128.95
₱2,362.38
List Price:  ₱4,725.36
You save:  ₱2,362.98
¥6,217.52
List Price:  ¥12,436.60
You save:  ¥6,219.08
MX$727.59
List Price:  MX$1,455.37
You save:  MX$727.77
QR145.69
List Price:  QR291.43
You save:  QR145.73
P531.05
List Price:  P1,062.24
You save:  P531.18
KSh5,168.70
List Price:  KSh10,338.70
You save:  KSh5,170
E£1,900.23
List Price:  E£3,800.94
You save:  E£1,900.70
ብር6,200.01
List Price:  ብር12,401.57
You save:  ብር6,201.56
Kz36,475.19
List Price:  Kz72,959.51
You save:  Kz36,484.32
CLP$36,918.76
List Price:  CLP$73,846.76
You save:  CLP$36,928
CN¥282.68
List Price:  CN¥565.44
You save:  CN¥282.75
RD$2,558.31
List Price:  RD$5,117.26
You save:  RD$2,558.95
DA5,200.55
List Price:  DA10,402.42
You save:  DA5,201.86
FJ$90.25
List Price:  FJ$180.52
You save:  FJ$90.27
Q306.18
List Price:  Q612.44
You save:  Q306.26
GY$8,362.69
List Price:  GY$16,727.49
You save:  GY$8,364.79
ISK kr5,115.12
List Price:  ISK kr10,231.52
You save:  ISK kr5,116.40
DH369.18
List Price:  DH738.46
You save:  DH369.27
L678.03
List Price:  L1,356.23
You save:  L678.19
ден2,113.32
List Price:  ден4,227.18
You save:  ден2,113.85
MOP$320.53
List Price:  MOP$641.14
You save:  MOP$320.61
N$677.44
List Price:  N$1,355.05
You save:  N$677.61
C$1,471
List Price:  C$2,942.37
You save:  C$1,471.37
रु5,750.15
List Price:  रु11,501.75
You save:  रु5,751.59
S/134.36
List Price:  S/268.75
You save:  S/134.39
K169.61
List Price:  K339.27
You save:  K169.65
SAR150.11
List Price:  SAR300.26
You save:  SAR150.15
ZK924.13
List Price:  ZK1,848.50
You save:  ZK924.36
L174.69
List Price:  L349.43
You save:  L174.74
Kč832
List Price:  Kč1,664.22
You save:  Kč832.21
Ft13,135.16
List Price:  Ft26,273.61
You save:  Ft13,138.44
SEK kr375.95
List Price:  SEK kr751.99
You save:  SEK kr376.04
ARS$57,344.43
List Price:  ARS$114,703.20
You save:  ARS$57,358.77
Bs276.21
List Price:  Bs552.50
You save:  Bs276.28
COP$151,890.72
List Price:  COP$303,819.42
You save:  COP$151,928.70
₡19,525.41
List Price:  ₡39,055.70
You save:  ₡19,530.29
L1,052.77
List Price:  L2,105.80
You save:  L1,053.03
₲274,915.72
List Price:  ₲549,900.20
You save:  ₲274,984.47
$U1,562.36
List Price:  $U3,125.12
You save:  $U1,562.75
zł145.18
List Price:  zł290.40
You save:  zł145.21
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.