The console may be a panel that shows important messages, like errors and code for developers. Much of the work the pc does with our code is invisible to us by default. If we would like to ascertain things appear on our screen, we will print, or log, to our console directly.
There are some rules while declaring a JS variable (also referred to as identifiers).
Name must start with a letter (a to z or A to Z), underscore(_), or dollar($) sign.
After the first letter, we will use digits (0 to 9), for instance value1.
JS variables are case-sensitive, for instance x and X are different variables.
There are 7 primitive data types:
A function may be a group of reusable code which may be called anywhere in your program. This eliminates the necessity of writing an equivalent code again and again. It helps programmers in writing modular codes. Functions allow a programmer to divide a big program into piece of smaller and manageable functions.
Since JS remains at the core of web development, it’s often the primary language learned by self-taught coders wanting to learn and build. We’re excited for what you’ll be ready to create with the JS foundation you gain here. JS powers the behavior on most websites.
In this lesson, you will learn introductory coding concepts, data types and built-in objects—essential knowledge for all aspiring developers.