Fichas
JavaScript
Fichas del conjunto (7)
- 1What are the different data types present in javascript?String
Number
BigInt
Boolean
Undefined
Null
Symbol
Object - 2Explain Hoisting in javascriptHoisting is the default behaviour of javascript where all the variable and function declarations are moved on top.
This means that irrespective of where the variables and functions are declared, they are moved on top of the scope. The scope can be both local and global. - 3Why do we use the word “debugger” in javascript?The debugger for the browser must be activated in order to debug the code.
- 4Difference between “ == “ and “ === “ operators.Both are comparison operators. The difference between both the operators is that “==” is used to compare values whereas, “ === “ is used to compare both values and types.
- 5What is NaN property in JavaScript?NaN property represents the “Not-a-Number” value. It indicates a value that is not a legal number.
- 6What is an Immediately Invoked Function in JavaScript?An Immediately Invoked Function ( known as IIFE and pronounced as IIFY) is a function that runs as soon as it is defined.
Syntax of IIFE :
(function(){
// Do something;
})(); - 7—
Información
- Descripción
- Informática Fichas sobre JavaScript, creado por Lincy Gonzalez el 28/12/2022.
- Creado por
- Lincy Gonzalez
- Visitas
- 2
- Valoración