Javascript - Part 01
Javascript - Part 01
Basics
1. Console.log
The console.log() function is used to print output to the console. It's commonly
used for debugging and displaying information.
console.log("Hello World");
2. "use strict"
The "use strict"; statement enables strict mode in JavaScript. It helps catch
common coding errors and prevents the use of certain error-prone features.
3. Variables
Variables are used to store and manage data in JavaScript. They can be declared,
used, and changed as needed.
Declaring a variable:
Using a variable:
Can use underscore (_) or dollar symbol ($) (e.g., first_name , $firstname )
Convention: Start with a small letter and use camelCase (e.g., firstName )
These notes cover the basics of using console.log, strict mode, variable
declaration, usage, and naming conventions in JavaScript.