Question 1 : How to rewrite the method foo()
const someText = 'some string';
function foo(){
if(someText.indexOf('string')!=-1){
return true
}
return false
}
a - someText.includes('string')
b - someText.endsWith('string')
c - someText.repeat(5)
Question 2: In ES6+(and further), what are properties intializers?
Question 4: What does the "display: flex" property?
const bar = true;
let foo = 'ok';
if(this.bar ===false){
foo='not ok';
}
Question 6: What does the "box-sizing: border-box" property?
A. The proprety don't exist.
B. The width and height properties (and min/max properties) includes only the margin.
C. The width and height properties (and min/max properties) includes content, padding and border, but not the margin.
D. The width and height properties (and min/max properties) includes only the content. Border, padding, or margin are not included.
Question 7: What is correct syntax for string interpolation?
A. none of these answer
B. ${customer.name)
C. #(customer.name)
D. @(customer.name}
Question 8: How define a 2D rotation of 10 degrees?
A. transition : rotate(10deg)
B. transition : scale(10d)
C. transform : rotate(10deg)
D. transform : rotate(10d)
Question 9: What does the === Identity operator?
A. Returns true if the operands are strictly equal with type conversion
B. Returns true if the operands are strictly equal with no type conversion
Question 9: When to use the funtion map in javascript ?
A. Change every item in an array
B. none of these answer
C. Split an array
D. Filter elements
Question 10: What is the correct syntax for referring to an external script called "myFile.js"
Question 11: What does the <noscript> tag do ?
A. Describes ceetain low-budget movies.
B. Enclose text to be displayed by non-Javascript browsers.
C. none of these answer
D. Prevents scripts on the page from executing.
Question 12: What display this code?
A. est
B. test
C. non of these answer
D. es
Question 13: Which of the following type of variable is visible everywhere in your Javascript code
A. Local variable
B. none of these answer
C. Global variable
Thank you very much for your answers
const someText = 'some string';
function foo(){
if(someText.indexOf('string')!=-1){
return true
}
return false
}
a - someText.includes('string')
b - someText.endsWith('string')
c - someText.repeat(5)
Question 2: In ES6+(and further), what are properties intializers?
- A. Private class properties
- B. Setters that can be called from an extended class
- c. A way to declare class properties without using a constructor() method
Question 4: What does the "display: flex" property?
- A. Displays an element as either block or inline, depending on context.
- B. The element is displayed as an inline-level table
- C. Displays an element as an block-level flex container.
- D. Displays an element as either block or inline, depending on context
const bar = true;
let foo = 'ok';
if(this.bar ===false){
foo='not ok';
}
Question 6: What does the "box-sizing: border-box" property?
A. The proprety don't exist.
B. The width and height properties (and min/max properties) includes only the margin.
C. The width and height properties (and min/max properties) includes content, padding and border, but not the margin.
D. The width and height properties (and min/max properties) includes only the content. Border, padding, or margin are not included.
Question 7: What is correct syntax for string interpolation?
A. none of these answer
B. ${customer.name)
C. #(customer.name)
D. @(customer.name}
Question 8: How define a 2D rotation of 10 degrees?
A. transition : rotate(10deg)
B. transition : scale(10d)
C. transform : rotate(10deg)
D. transform : rotate(10d)
Question 9: What does the === Identity operator?
A. Returns true if the operands are strictly equal with type conversion
B. Returns true if the operands are strictly equal with no type conversion
Question 9: When to use the funtion map in javascript ?
A. Change every item in an array
B. none of these answer
C. Split an array
D. Filter elements
Question 10: What is the correct syntax for referring to an external script called "myFile.js"
Question 11: What does the <noscript> tag do ?
A. Describes ceetain low-budget movies.
B. Enclose text to be displayed by non-Javascript browsers.
C. none of these answer
D. Prevents scripts on the page from executing.
Question 12: What display this code?
A. est
B. test
C. non of these answer
D. es
Question 13: Which of the following type of variable is visible everywhere in your Javascript code
A. Local variable
B. none of these answer
C. Global variable
Thank you very much for your answers