Professional Documents
Culture Documents
WT Esa 2022
WT Esa 2022
WT Esa 2022
ii) For the given HTML code write a jQuery code for sliding all divs
up and down
<body>
<button class="btn1">Slide down</button>
<button class="btn2">Slide up</button>
<br><br>
<div>PES</div>
<div>UNIVERSITY</div>
<div>BANGALORE</div>
</body>
SRN
iii) Write a jQuery code to add a red border to an image “Sample.jpg
on button click
3 a i) What would be the output of the following example? Justify your 4(2+2)
answer
var Test=(props)=>
{
return (
<div>
Hello World 1
</div>
<div>
Hello World 2
</div>
);
}
ReactDOM.render(<Test/>, mountNode)
a. SetState
b. Render with arguments
c. Props
d. PropTypes
c 10
b Create a simple server (use http request GET method) that will 8
allow you to display an HTML file on the browser given the
pathname. Set default pathname to index.html. Handle errors by
displaying file not found message
5 a Brief any 4 design specifications for RESTful APIs. What are the 8
HTTP methods supported by REST?
c What are Middleware Functions and what are they used for? 6
Explain Router-level middleware with an example.