- What is the scope of variable GLOBAL_DATA in the example below:
Pretend in the console, that we type: console.log(GLOBAL_DATA);
<script>
let GLOBAL_DATA = { value : 1};
What is the difference between const and let? and why don't we use var?
What does return and console.log do inside a function and what is the difference between them?
What is a paramater in JS function and why is it there?
What are truthy and falsy values in JS? give some example on each
Please discuss with your teams and answer these questions in your own words.
any
type, and should we use it?enums
work and how are they usefull?Please type your answers in the comment section below