console.log(), it is a method to show output in web browser console. It is a very basic method. It is very useful in testing small parts while building big projects.
Scope means the access to the variable. It is a type of boundary, like when something is declared inside a scope it cannot be accessed outside that scope. Scopes are of two types:
Local Scope: It is a box which contains boundaries. Where elements declared inside scope cannot be accessed by variables outside the scope.
Global Scope: It is a box which has no boundaries. Where elements are…
The flex property sets the flexible length on flexible items. So flex property shows how a flex item will grow to fit the space available in its flex container. The flex property in CSS is shorthand for flex-grow, flex-shrink, and flex-basis.
flex-grow specifies the flex grow factor or positive flexibility for the flex item.
flex-shrink specifies the flex shrink factor or negative flexibility for the flex item.
flex-basis specifies the initial size of the flex item.
flex-directionproperty specifies the direction of the flexible items.
This is normal function hello = function()…