hello and welcome to Texan tutorials
today we are going to discuss whether
should be learned pure JavaScript or not
in the world of frameworks like angular
and react if you're starting out and if
you are trying to your ultimate goal is
to learn and one of the frameworks is it
important to learn pure JavaScript as
well since you're spending all the time
and energy in it and if you do then what
part in pure JavaScript should you focus
on and what part you should ignore the
part that is covered by the framework
basically I know a lot of my viewers
asked me this question pretty much on
daily basis so I thought it's an
important topic to discuss but before we
do that let's understand what is a pure
chowster a good example would be lets
say if i'm trying to access an element i
would usually say document dot get
element by ID and i'll pass the name of
the element let's say my ID or something
so this is an example of pure JavaScript
because get element ID is native
JavaScript function now I can do the
same thing using jQuery in this format I
can say pound mints ID and I can just
say my ID this would work as well but I
have to include the jQuery library this
is not pure JavaScript so that's the
main difference
anything that is natively available in
JavaScript it's called pure vanilla
JavaScript the funny thing is vanilla is
actually a flavor it's not pure but
somehow people use it to describe pure
JavaScript first I would split the
entire JavaScript population into two
kinds the one who builds a JavaScript
library or frameworks you know and you
already know that you know github you
have like tons of libraries and
frameworks available and people who
build them they need to have a solid
knowledge of pure JavaScript because
they have to build in pure JavaScript
however the consumer the people who use
those library to build their projects
what about them for example that's if
you're using
which is a framework what does it do and
how much pure JavaScript you need to
know if you are going to use angular
angular helps you build overall single
page application it helps you build
routers components you can night
services that you can inject to it and
consume it and all that stuff right so
overall it helps you update your dome
automatically in all days we used to do
using jQuery with you know finite
element by ID or class or whatever and
then we would modify text of the element
manually and when you have to update you
updated and delete in what all that
stuff right that those processes are
done seamlessly by the frameworks
nowadays so you don't have to do all of
this stuff so any kind of a Dom
manipulation used to do you don't have
to do anymore
very rarely you have to do for example
if you're writing a test in particular
environment where you have to get a
particular element either by class or ID
or data test ID you have to use
selectors so that's probably the only
areas you have the user but otherwise
you don't have to do any dough
manipulation within individual
components you have to write the core
logic of what this component is going to
do for that you have to use pure
JavaScript which means you have the you
you know defined variables use loop use
functions error functions classes set
timeout closures pretty much all the
JavaScript you don't have to think too
much about is the scoping because you
cannot really manipulate the global
scope that easily that you weren't able
to do before and nowadays we use
transpilers which maybe would write only
in the latest version of javascript and
it would transpire to es5 or whichever
version do you like so you don't have to
deal with the VAR you can just use let
and Const so there is no hoisting to
worry about however however if you go to
an interview they would ask you all the
silly questions on pure javascript and
even manipulating Dom so for that
particular reason you probably have to
learn that as well now you can say that
ok I'm using frameworks are
to manipulate the dome but if your
interview you're asking something you
have to give an answer
also when you're trying to debug let's
say you get stuck onto something and you
have to debug inside the console the
console you would see older version of
jazz can because a transpiler
so you would have to deal with it so
overall you still have to learn pure
vanilla transcript my advice to you for
those who want to jump into a framework
first tried will use the latest version
of Charles Cain es6 because that is most
relevant in today's age at least get
yourself familiarize with all the the
latest tricks that are being used and
then start learning framework so I hope
you learn something from this tutorial
and if you did please like subscribe and
provide a constructive comment thank you
you