⇥ when we create a new function with FUNCTION keyword, we all it function statement.
⇥ example:
➋ function expression
⇥ creating and assigning a function to a variable is known as function expression.
⇥ example:
➌ function declaration
⇥ creating a new function is known as function declaration. we can declare a function in both way, function expression
example:
➍ function invocation
⇥ A defined function can be invoked with () at the end of function name. in the below code snippet, at line no.5, we're invoking/calling printUserName function.
⇥ example:
➎ Anonymous function
⇥ A javascript function without name is called as anonymous function. we can use these function where we using function as value or callback.
⇥ example:
➏ named function expression
➐ first class function
⇥ the ability of function
*to be used as values,
*can be passed as an argument to another function and
*can be returned from function
➑ arrow function
⇥ also known as fat arrow function
⇥ syntax:
⇥ doesn't have its own context
⇥ this inside arrow function will refer to parent's context
➒ function parameters and arguments
⬕ parameters:
⇥ when we all the function with some values, then those values is known as parameter of the function.
⬕ arguments:
⇥ passed parameters to a function is are argument for the function.
⇥ Bootstrap is the most popular css framework globally and got instant popularity because of its responsive design. almost anything, from alerts to modals to navigation bars, is supported by default making is easy to build amazing website. getbootstrap.com
➋ Tailwind CSS
⇥ Tailwind css is a utility-first css framework that is different that other frameworks like bootstrap where you get pre-designed components. Tailwind requires the least amount of learning an dis easy to use
⇥ An inline property dose not start on new and only takes up as much width as necessary.Any height and width properties will have no effect on inline elements. This example overrides the default setting of <li> bullet points and presents them in one line.
➁ Display : Block
⇥ Display Block property shows the elements one by one like a building. Every block element appears in a new line. margin. padding and width work in display block.
❒ <!DOCTYPE> ⇥ Defines the document.
❒ <html> ⇥ Defines an html document
❒ <head> ⇥ Contains metadata/information for the document
❒ <title> ⇥ Defines a title for the document
❒<body> ⇥ Defines the document's body
❒<h1> to <h6> ⇥ Defines HTML Heading
❒ <p> ⇥ Defines a paragraph
❒ <br> ⇥ inserts a single line break
❒ <hr> ⇥ Defines a thematic change in the content
❒ <!--..--> ⇥ Defines a comment