React_js_Design_Patterns_Learn_how_to_build_scalable_React_apps.pdf
3.1 MB
π FREE Book
React.js Design Patterns: Learn how to build scalable React appswith ease (2023)
By: Anthony Onyekachukwu Okonta
#book
React.js Design Patterns: Learn how to build scalable React appswith ease (2023)
By: Anthony Onyekachukwu Okonta
#book
π₯2β€1π1
What does the "display: flex" property do in CSS?
Anonymous Quiz
10%
Centers text within an element
12%
Changes an elementβs position on the page
72%
Creates a flexible layout that arranges items in a row or column
6%
Sets the visibility of an element to hidden
The task is to write a palindrome function.
Difficulty: Hardπ€
Difficulty: Hardπ€
isPalindrome("radar"); // true
isPalindrome("hello"); // falseWhich method can be used to replace parts of a string in Python?
Anonymous Quiz
59%
replace()
19%
substitute()
17%
switch()
6%
modify()
What does the "this" keyword refer to in JavaScript?
Anonymous Quiz
16%
The function itself
43%
The object that is calling the function
20%
The global object (e.g., window in browsers)
20%
The variable defined within the function
This media is not supported in your browser
VIEW IN TELEGRAM
π―2π€£2β€1π1
What will this code output? Spot the bug.
Difficulty: Hardπ€
Difficulty: Hardπ€
for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}What does HTML stand for?
Anonymous Quiz
5%
HyperText Mail
8%
Home Tool Markup Language
8%
Hyperlinks and Text Markup Language
80%
Hyper Text Markup Language
What is the default value of the position property in CSS?
Anonymous Quiz
30%
relative
21%
fixed
35%
static
14%
absolute
What is the correct way to create a function in Python?
Anonymous Quiz
17%
function my_function():
58%
def my_function():
19%
def my_function:
6%
create my_function():
JavaScript Task
Check that this string consists of numbers only.
Difficulty: Easyπ
Check that this string consists of numbers only.
Difficulty: Easyπ
string = "1234567890"
How can you check if a value is NOT equal to 5 in JavaScript?
Anonymous Quiz
58%
if (value != 5)
13%
if (value == 5)
18%
if (value =! 5)
10%
if (value <> 5)
π CSS display: contents
How can display: contents improve layout flexibility? This property makes elements "transparent" in the DOM, merging their children with the parent container without altering visual display. It helps eliminate unnecessary wrappers and simplifies styling, but be aware of accessibility issues with screen readers.
How can display: contents improve layout flexibility? This property makes elements "transparent" in the DOM, merging their children with the parent container without altering visual display. It helps eliminate unnecessary wrappers and simplifies styling, but be aware of accessibility issues with screen readers.
π2π₯2
Inline elements in HTML are typically displayed without starting a new line.
Anonymous Quiz
68%
True
32%
False
This media is not supported in your browser
VIEW IN TELEGRAM
The developer gets angry at the tester for finding yet another bug.π€£
π€£5π1
How can the code be modified to handle both successful and failed promises?
Difficulty: Impossibleπ
Difficulty: Impossibleπ
const promises = [
Promise.resolve(1),
Promise.reject(new Error('Error'))
];
Promise.all(promises)
.then(results => console.log(results))
.catch(error => console.error(error));
π1π€―1
Which property controls the stacking order of elements?
Anonymous Quiz
5%
visibility
77%
z-index
5%
opacity
13%
display
Which method adds a new child node to a parent node?
Anonymous Quiz
27%
addChild()
17%
insertNode()
8%
createChild()
48%
appendChild()