Flashcards
Vefforritun
Flashcards do conjunto (8)
- 1What is a polyfill?A JavaScript library which implements some behaviour defined in HTML5, intended for browsers which don´t support that feature in HTML5
- 2Feature detection is:when JavaScript code explicitly checks if a given feature/function is defined/implemented
- 3The following elements are declared obsolete in HTML5, except for one. Which one? -frameset -acronym -big -b -fontb
- 4The following code is given: var f = function(){ return "Hello world"; } console.log(f); What will be printed to the console when this code is executed?The function itself will be logged
- 5function DoStuff(x,y){ console.log(y); } DoStuff(10); What will be printed to the console when this code is executed?undefined
- 6The following method to loop through items in an array: var arr = [1,2,3,4,5]; for ( var i in arr ){ console.log( arr[i] ); } has a downside. What is it?It will include items added to the prototype object of Array
- 7In a given code, the following line can be found: X.prototype = {}; What could the type of X be? Mark the most correct answer.It could be a function which is used as a constructor function
- 8—
Informações
- Descrição
- FlashCards sobre Vefforritun, criado por Kristin Sif Vigfusdottir em 03-04-2017.
- Criado por
- Kristin Sif Vigfusdottir
- Visualizações
- 0
- Avaliação