Professional Documents
Culture Documents
FSD File 120
FSD File 120
: 202103103510120
Practical 1
Aim: Create a “Hello World” Program using the ES6 arrow function in React.
Solution :
<!DOCTYPE html>
<html lang="en">
<body>
<h1>Arrow Function</h1>
<p id="arrow"></p>
<p id="function"></p>
<script>
world = function()
{
return "Hello World"
}
document.getElementById("function").innerHTML = world();
hello = () => {
return "Hello World"
}
document.getElementById("arrow").innerHTML = hello();
</script>
</body>
</html>
Output :
Practical 3
Aim: Implement “Hello World” Program in node.js.
Solution :
const http = require('http');
Output :