-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathasessment.js
More file actions
114 lines (86 loc) · 3.24 KB
/
Copy pathasessment.js
File metadata and controls
114 lines (86 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* Problem 1 */
/* Skill: Git
You want to grow a new branch from any commit. Identify the code you will use to swtich to "HEAD-5" and create a branch named 'testbranch'
*/
//YOUR CODE HERE
/* Problem 2 */
/*Skill: React, API call
You are creating an API that calls an application in ReactJS. The application allows the fetching of data from the following endpoint.
API ENDPOINT: https://www.reddit.com/r/react.json
complete the code as per the given instructions:
*/
class APICaller extends React.Component{
callApi(){
//#1 Implement a fetch method with the given API ENDPOINT
// YOUR CODE HERE
.then((result)=>{
//#2 Return the result in json format
//YOUR CODE HERE
}).then((jsonData)=>{
//#3 Print/log the jsonData in the console of the browser
//YOUR CODE HERE
})
}
render(){
return <div>
<button
//#4 Implement an onCLick functionality to the button such that it calls the callApi() function when it is clicked.
// YOUR CODE HERE
>Call the API now.</button>
</div>
}
}
React.render(
//#5 Implement the APICaller component appropiately into the render method
//YOUR CODE HERE
, document.getElementById('myapicaller')
)
/* Problem 3 */
/*Skill: recursion
Please write an explanation of recursive functions where your audience is a beginner learner with knowledge of basic JS functions.
Please write an example of a recursive function, and comment each line
*/
/*EXPLANATION HERE (1 paragraph) */
function myRecursiveFunction(){
//YOUR CODE WITH COMMENTS HERE
}
/* Problem 4 */
/* Skill: algorithms
Please write an explanation for an introduction to sorting algorithms.
Write an example of Bubble Sort and comment each line of your code
with explanation
*/
/* Sorting algorithms intro explanation HERE (1-2 paragraphs) */
/*Bubble sort example HERE*/
/* Problem 5 */
/*Skill: Leetcode Algorithms
solve the following leetcode in JavaScript:
https://leetcode.com/problems/house-robber/
and paste your solution here. Please comment each line of your code to explain it, and be prepared to explain in the follow up interview.
*/
/* Problem 6 */
/*Skill: Leetcode Algorithms
solve the following leetcode in JavaScript:
https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/
and paste your solution here. Please comment each line of your code to explain it, and be prepared to explain in the follow up interview.
/* Problem 7 */
/*Skill: SQL
Please fork and complete this SQL exercise:
https://gist.github.com/harrisonmalone/e06ea120532e5cd323ef0b0b379fa4d6
LINK TO YOUR REPO HERE
*/
/* Problem 8 */
/*Skill: React
Explain state management and lifting state in React. Please include the difference between Redux and Context API. Your audience is a beginner learner with an understanding of React components, props and basic state.
//Your explanation HERE
*/
/* Problem 9 */
/*
Skill: Node/Express
How would you explain what Node and Express do to a beginner learner with no experience in server side programming?
Your explanation HERE (2 paragraphs)
*/
/* Problem 10 */
/*Skill: JavaScript Objects + Classes
Complete instructions in the cardGame.js file
*/