Today i started continue to learn Javascript and lean the basic fundamentals.
1.console.log()
I learned to use console.log() to display values and messages in the browser console.
console.log("Hello Javascript");
2.Variables
I learned how to declare variables and assign values to them.
var name = "Saravanan";
Here name is the variable and value is the Saravanan.
3.Assignment Operator(=)
assignemt operator is used to assign a value to a variable.
let age = 33;
4,Let keyword
I how to declare variables using let keyword.
let city = "chennai"
5.Functions
I learnt how to declare a function,give it a name and call the function.
`function greet() {
console.log("Hello!");
}
greet();`
The function is declared using function keyword .greet() is the function name.
Today i understood Javascript can store datas,perform operations,execute reusable blocks code of using fucntions.
Top comments (0)