Learn Javascript - Full Course for Beginners
freeCodeCamp.org
Beau Carnes: This is the Beginner 's JauaScript course you are
loOking jor. In this Jull J a v a s c r i p t COurSe, y o u Will learn2
everything you need to know to get started with JavaSCript
This COUrSe is Derfect for beginners Or anyone that jUst wants a
refresher on basiC JavaSCript syntax. After this COurse, after this
COurSe you re going to want tO Complete some or build some
JavaSCript projects. This COurSe follows along witlh the
JavaSCript curriculu mon freeCodeCamp. org. Thnere 'S a built-in
JavaSCript editor right in here. A n d then it s h o w s yOu the
ConSole dowrn here. Another option uOuld be tO USe CocdePern.
io. And the final thing you Can d o WOuld be use Scrimba. com.
I ncomputer s i e n c e , data is anything that is mearingful to the
Computer. JavaScript proUidES Seven different data types that
yOu Can u s e within J U a s C r i p t . A U a r i a b l e a l l o w s Computers to
Store a n m a n i p u l a t e d a t a in a dynanmic f a s h i o n . TO d e c l a r e a
Uariable in JavasCript, one way is t uSe the var keywOrd.
A Uar is going to be able to be used throughout yOur u h o l e
p r o g r a m . L e t will o n l y b e USed i t h i n t h e sCOpe Of w h e r e yOU
declared that. Const is a Uariable t h a t s h o u l d n e v e r change.
YOu end al lineS in JavasCriptwith a Semicolon. We'll b e talking
m o r e a b o u t t h e different t y p e s of Uariables later. A + 1 is g o i n g
to eqUal 6. 5 +
t h e n C iS nQW
=6. b
gOing ,to
=b
S a y "
+5. That s going to be 15. And
I a m a s t r i n g " When w e c o n s o l e .
o g ( a ) it shoWS 7 down there. YOu Can check what variables
a r e a t Uarious pOoints in y O u r p r o g r a m . AGding n u m b e r _ in
JavASCripOt is pDretty straight f o r w r d . YOU j s t USe the pluS
Operator to add twO numbers. Multiplication in JaUasCript uSES
this * Or a star sSymbOl here. YOU Can divide in JaUascript with
this / symbol. So, this says 66/0. 66/33 is 2. QUotient equals 2.
The remainder operatorlookS like a %. And it gives,fhe,
remainder of t h e diuision Of twO numberS. If yOU CAn diuide a
number by 2 a n d the r e m a i n d e r is O, t h a t m E a n s the n u m b e r is
even. If IjUst ChangJe thiS to 2,500, n o u the ansWer tO product
is going t o be 5. Javascript just subtraCts the number from the
Original value and then assigns that new U l u e to the Uariable.
Compound Assignment with AUgmentea Multiplication is
a n o t h e r shortcuT JOr JaUaSCript. h e r e 1S a n e s c a p e c h a r a c t e r
e s c a p e c h a r a c t e r irn JavasCript. If y o u Want to e S C a p e a qUote
that mear it will no longer be nsidered the end of the atring.
I n s t e a do f h a u i n g yJOur s t r i n g s t a r t with d o u b l e qUoteS, haUE if
s t a r t with a s i n g l e qUote. A s t r i n g c a n either bE S u r r o u n d e d b y
Single q u o t e s O r " double quOtes " Javascript knoWS thhat this is
SUpDOsE to be a literal quote character inside the string. There
are ofher methods of acComplishing thhe sarme thing of aving a
freeCodeCamp.org
Beau Carnes: This is the Beginner 's JauaScript course you are
loOking jor. In this Jull J a v a s c r i p t COurSe, y o u Will learn2
everything you need to know to get started with JavaSCript
This COUrSe is Derfect for beginners Or anyone that jUst wants a
refresher on basiC JavaSCript syntax. After this COurse, after this
COurSe you re going to want tO Complete some or build some
JavaSCript projects. This COurSe follows along witlh the
JavaSCript curriculu mon freeCodeCamp. org. Thnere 'S a built-in
JavaSCript editor right in here. A n d then it s h o w s yOu the
ConSole dowrn here. Another option uOuld be tO USe CocdePern.
io. And the final thing you Can d o WOuld be use Scrimba. com.
I ncomputer s i e n c e , data is anything that is mearingful to the
Computer. JavaScript proUidES Seven different data types that
yOu Can u s e within J U a s C r i p t . A U a r i a b l e a l l o w s Computers to
Store a n m a n i p u l a t e d a t a in a dynanmic f a s h i o n . TO d e c l a r e a
Uariable in JavasCript, one way is t uSe the var keywOrd.
A Uar is going to be able to be used throughout yOur u h o l e
p r o g r a m . L e t will o n l y b e USed i t h i n t h e sCOpe Of w h e r e yOU
declared that. Const is a Uariable t h a t s h o u l d n e v e r change.
YOu end al lineS in JavasCriptwith a Semicolon. We'll b e talking
m o r e a b o u t t h e different t y p e s of Uariables later. A + 1 is g o i n g
to eqUal 6. 5 +
t h e n C iS nQW
=6. b
gOing ,to
=b
S a y "
+5. That s going to be 15. And
I a m a s t r i n g " When w e c o n s o l e .
o g ( a ) it shoWS 7 down there. YOu Can check what variables
a r e a t Uarious pOoints in y O u r p r o g r a m . AGding n u m b e r _ in
JavASCripOt is pDretty straight f o r w r d . YOU j s t USe the pluS
Operator to add twO numbers. Multiplication in JaUasCript uSES
this * Or a star sSymbOl here. YOU Can divide in JaUascript with
this / symbol. So, this says 66/0. 66/33 is 2. QUotient equals 2.
The remainder operatorlookS like a %. And it gives,fhe,
remainder of t h e diuision Of twO numberS. If yOU CAn diuide a
number by 2 a n d the r e m a i n d e r is O, t h a t m E a n s the n u m b e r is
even. If IjUst ChangJe thiS to 2,500, n o u the ansWer tO product
is going t o be 5. Javascript just subtraCts the number from the
Original value and then assigns that new U l u e to the Uariable.
Compound Assignment with AUgmentea Multiplication is
a n o t h e r shortcuT JOr JaUaSCript. h e r e 1S a n e s c a p e c h a r a c t e r
e s c a p e c h a r a c t e r irn JavasCript. If y o u Want to e S C a p e a qUote
that mear it will no longer be nsidered the end of the atring.
I n s t e a do f h a u i n g yJOur s t r i n g s t a r t with d o u b l e qUoteS, haUE if
s t a r t with a s i n g l e qUote. A s t r i n g c a n either bE S u r r o u n d e d b y
Single q u o t e s O r " double quOtes " Javascript knoWS thhat this is
SUpDOsE to be a literal quote character inside the string. There
are ofher methods of acComplishing thhe sarme thing of aving a