Fsd Lab Manual[r22a0589] (1)
Fsd Lab Manual[r22a0589] (1)
B. TECH CSE
(III YEAR–I SEM)
R22 REGULATION
(2024-25)
Name : ________________________________
Roll no:
Section:
Year :
Mission
To achieve and impart holistic technical education using the best of infrastructure,
outstanding technical and teaching expertise to establish the students in to competent
and confident engineers.
Evolving the center of excellence through creative and innovative teaching learning
practices for promoting academic achievement to produce internationally accepted
competitive and world class professionals.
PROGRAMME EDUCATIONAL OBJECTIVES (PEOs)
PEO1–ANALYTICALSKILLS
To facilitate the graduates with the ability to visualize, gather information, articulate, analyze,
solve complex problems, and make decisions. These are essential to address the challenges of
complex and computation intensive problems increasing their productivity.
PEO2–TECHNICALSKILLS
Tofacilitatethegraduateswiththetechnicalskillsthatpreparethemforimmediateemployment and
pursue certification providing a deeper understanding of the technology in advanced areas of
computer science and related fields, thus encouraging to pursue higher education and research
based on their interest.
PEO3– SOFTSKILLS
To facilitate the graduates with the soft skills that include fulfilling the mission, setting goals,
showing self confidence by communicating effectively, having a positive attitude, get
involved in team-work, being a leader, managing their career and their life.
PEO4–PROFESSIONALETHICS
To facilitate the graduates with the knowledge of professional and ethical responsibilities by
paying attention to grooming, being conservative with style, following dress codes, safety
codes, and adapting them to technological advancements.
1. Fundamentals and critical knowledge of the Computer System: - Able to Understand the
working principles of the computer System and its components, Apply the knowledge to
build, asses, and analyze the software and hardware aspects of it.
3. Applications of Computing Domain & Research: Able to use the professional, managerial,
interdisciplinary skill set, and domain specific tools in development processes, identify their
search gaps, and provide innovative solutions to them.
PROGRAM OUTCOMES (POs)
Engineering Graduates should possess the following:
2. Problem analysis: Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to complex engineering activities
with an understanding of the limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to
the professional engineering practice.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader
in diverse teams, and in multidisciplinary settings.
11. Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and
leader in a team, to manage projects and in multidisciplinary environments.
12. Life- long learning: Recognize the need for, and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technological change.
FULL STACK DEVELOPMENT
LABORATORY
1. Course Objectives:
1. This course will enable the students:
2. Usage of various front and backend Tools
3. They can understand and create applications on their own
4. Demonstrate and Designing of Websites can be carried out.
5. Develop web based application using suitable client side and server side code.
6. Implement web based application using effective database access.
2. Course outcomes:
Students will be able to understand
1. Usage of various front and back end Tools
2. They can understand and create applications on their own
3. Demonstrate and Designing of Websites can be carried out.
4. Develop web based application using suitable client side and server side code.
5. Implement web based application using effective database access.
WEEK-1 Designing of following static web pages required for an online book
store web site.
1) HOME PAGE
2) LOGIN PAGE
3) CATOLOGUE PAGE:
The catalogue page should contain the details of all the books available in the web site in a
table.
The details contain the following:
a. Snap shot of Cover Page.
b. Author Name.
c. Publisher.
d. Price.
e. Add to cart button.
4) CART PAGE:
a. The cart page contains the details about the books which are added to the cart.
b. The cart page should look like this:
5) REGISTRATION PAGE:
“registration form “with the following fields
1) Name (Text field)
2) Password (password field)
3) E-mail id (text field)
4) Phone number (text field)
5) Sex (radio button)
6) Date of birth (3 select boxes)
7) Languages known (check boxes – English, Telugu, Hindi, Tamil)
8) Address (text area)
<html>
<head><title>Book</title></head>
<frameset rows="25%,75%">
<frame src="top.html" name="top" framespacing="0" scrolling="no"
frameborder="0"noresize>
<frameset cols="15%,85%">
<frame src="left.html" name="left" framespacing="0" scrolling="auto"
frameborder="0"noresize>
<frame src="right.html" name="right" framespacing="0" scrolling="auto"
frameborder="0"noresize>
</frameset>
</frameset>
</html>
<html>
<head>
<title>top</title>
<style>
a:link{text-decoration:none}
a:visited {text-decoration:none;color:red}
a:hover {text-decoration:underline;color:green}
a:active {text-decoration:none;color:blue}
</style>
</head>
<body bgcolor="#fedcba" >
<p align="center">
<table height="100%" width="100%" border="0" align="center"
height="100%">
<colgroup span="5" width="20%"></colgroup>
<tr align="center"><td><img src="logo.gif" width="85%" name="logo"
alt="sitelogo"></td><td colspan="4"><h1>AMAZON BOOKS
WORLD</h1></td></tr>
<tr align="center"><td>
<a name="home" href="home.html" target="right">HOME</a></td>
<td><a name="login" href="login.html" target="right">LOGIN</a></td>
<td>
<a name="registration" href="registration.html"
target="right">REGISTRATION</a></td>
<td><a name="catalogue" href="catalogue.html"
target="right">CATALOGUE</a></td>
<td><a name="cart" href="cart.html" target="right">CART</a></td>
</tr>
</table>
</p>
</body>
</html>
a:visited {text-decoration:none;color:red}
a:hover {text-decoration:underline;color:green}
a:active {text-decoration:none;color:blue}
</style>
<title>Left</title>
</head>
<body bgcolor="#fabecd">
<p align="center"><a href="ece.html" target="right">ECE</a></p >
<p align="center"><a href="eee.html" target="right">EEE</a></p >
<p align="center"><a href="mech.html" target="right">MECH</a></p >
<p align="center"><a href="csit.html" target="right">CSE</a>
</body>
</html>
<html>
<head>
<title>right frame
</title>
</head>
<body bgcolor="#abcdef">
<font color='#123123' size='+3'>welcome to amazon books world</font>
<br>
This site provides the books information related to various categories.
</body>
</html>
<html>
<head>
<title>home page
</title>
</head>
<body bgcolor="#abcdef">
<font color='#123123' size='+3'>welcome to amazon books world</font>
<br>
This site provides the books information related to various categories.
</body>
</html>
<html>
<head>
<title>login form</title>
</head>
<body bgcolor="#abcdef">
<h3 align="center">login into the site</h3>
<form method="post">
<table align="center">
<tr><td>name</td><td><input type="text" name="uname"></td></tr>
<tr><td>password</td><td><input type="password" name="pass"></td></tr>
<tr align="center"><td><input type="submit" value=" login "></td><td><input
type="reset" value=" reset "></td></tr>
</table>
</form>
</body>
</html>
Create a in notepad and save it as “registration.html”
<html>
<head>
<title>Registration form</title>
</head>
<body bgcolor="orange">
<h3 align="center" color="pink">Registration form</h3>
<center>
<form name="regform" method="post">
<table cellspacing="15">
<tr><td>NAME</td><td><input type="text" name="name" size="25"></td></tr>
<tr><td>PASSWORD</td><td><input type="password" name="pass" size="25">
</td></tr>
<tr><td>PHONE NUMBER</td><td><input type="text" maxLength="10"
name="phno"size="25"></td></tr>
<tr><td>E-MAIL</td><td><input type="text" name="emai" size="25">
</td></tr>
<tr><td>LANGUAGES KNOWN</td>
<td>TELUGU <input type="checkbox" name="telugu" value="telugu"><br>
ENGLISH <input type="checkbox" name="english" value="english"><br>
HINDI <input type="checkbox" name="hindi" value="hindi">
</td>
</tr>
<tr><td>ADDRESS</td><td><textarea rows="3" cols="25" name="address"
wrap="soft"></textarea></td>
</tr>
</table>
<br><br>
<input type="submit" align="center" value="send"> <input
type="reset"align="center" value="cancel">
</form>
</center>
</body>
</html>
Create a in notepad and save it as “catalogue.html”
<html>
<head>
<title>catalogue page</title>
</head>
<body bgcolor="#abcdef">
<table width="100%">
<tr><td><img src="xml.jpg"></td>
<td>Book: XML Bible<br>
Author: Winston<br>
Publication: Wiely
</td>
<td>$ 40.5</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="html.jpg"></td>
<td>Book : HTML in 24 hours<br>
Author : Sam Peter<br>
Publication : Sam publication
</td>
<td>$ 50</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="ai.jpg"></td>
<td>
Book : AI<br>
Author : S.Russel<br>
Publication : Princeton hall
</td>
<td>$ 63</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="java.jpg"></td>
<td>Book : Java 2<br>
Author : Watson<br>
Publication : BPB publications
</td>
<td>$ 35.5</td>
<td><img src="cartbutton.jpg"></td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>cart page</title>
</head>
<body bgcolor="#abcdef">
<table align="center" width="75%">
<tr align="center"><th>Book Name</th>
<th>Price</th>
<th>Quantity</th>
<th>Amount</th>
</tr>
<tr align="center"><td>Java2</td>
<td>$35.5</td>
<td>2</td>
<td>$70</td>
</tr>
<tr align="center"><td>XML Bible</td>
<td>$40.5</td>
<td>1</td>
<td>$40.5</td>
</tr>
<tr align="right"><th colspan="4">Total amount -$110</th>
</table>
</body>
</html>
<html>
<head>
<title>csit books</title>
</head>
<body bgcolor="skyblue">
<h3 align="center">Computer Science & IT Books</h3>
<table width="100%">
<tr><td><img src="xml.jpg"></td>
<td>Book: Mobile Computing<br>
Author: Winston<br>
Publication: Wiely
</td>
<td>$ 40.5</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="html.jpg"></td>
<td>
Book : Computer Networks<br>
Author : Sam Peter<br>
Deve Publication : Sam publication
</td>
<td>$ 50</td>
<td><img src="cartbutton.jpg"></td>
</tr>
Department of CSE 7|Page
FULL STACK DEVELOPMENT 2024-2025
<tr><td><img src="ai.jpg"></td>
<td>Book : Computer
Communications<br> Author :
S.Russel<br>
Publication : Princeton hall
</td>
<td>$ 63</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="java.jpg"></td>
<td>Book : Web
Design<br> Author :
Watson<br>
Publication : BPB
publications
</td>
<td>$ 35.5</td>
<td><img src="cartbutton.jpg"></td>
</tr>
</body>
</html>
<html>
<head>
<title>eee books</title>
</head>
<body bgcolor="skyblue">
<h3 align="center">Electrical and Electronics Eng. Books</h3>
<table width="100%">
<tr><td><img src="xml.jpg"></td>
<td>Book: Machines<br>Author: Winston<br>
Publication: Wiely
</td>
<td>$ 40.5</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="html.jpg"></td>
<td>Book : Power
Electronics<br> Author
: Sam Peter<br>
Publication : Sam
publication
</td>
<td>$ 50</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="ai.jpg"></td>
<td>Book : Transmision
Systems<br>Author :
S.Russel<br>
Publication : Princeton hall
</td>
<td>$ 63</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="ai.jpg"></td>
<td>Book : Digital Logic Design<br> Author : S.Russel<br> Publication :
Princeton hall
</td>
<td>$ 63</td>
<td><img src="cartbutton.jpg"></td>
</tr>
<tr><td><img src="java.jpg"></td>
<td>Book : Signal
Processing<br>
Author :
Watson<br>
Publication : BPB
publications
</td>
<td>$ 35.5</td>
<td><img src="cartbutton.jpg"></td>
</tr>
</body>
</html>
OUTPUT:
Department of CSE 10 | P a g e
FULL STACK DEVELOPMENT 2024-2025
<html>
<head>
<link rel="stylesheet" type="text/css" href="test1.css">
</head>
<body>
<h1>This header is red</h1>
<h2>This header is blue</h2>
<p> This text is normal</p>
</body>
</html>
OUTPUT:
Department of CSE 11 | P a g e
FULL STACK DEVELOPMENT 2024-2025
b) Setting a background image for both the page and single elements on the
page
Create file in notepad and save with “backgrounds.html”
<html>
<head>
<style type="text/css">
body{ background-image:url("flower.jpg");
background-repeat:no-repeat; }
</style>
</head>
<body>
<center>
<h1>Life is beautiful!!!</h1>
<h2>Strength is live</h2>
<h2>weakness is death</h2>
</center>
</body>
</html>
OUTPUT:
Department of CSE 12 | P a g e
FULL STACK DEVELOPMENT 2024-2025
OUTPUT:
Department of CSE 13 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Department of CSE 14 | P a g e
FULL STACK DEVELOPMENT 2024-2025
a)Mouse
b)Keyboard
c)Form
d)Window
click()
<script language="javascript">
function fun1()
alert("hai");
function fun2()
alert("bye");
</script>
</head>
<body>
<button onclick="fun1()">onClickme</button>
<button ondblclick="fun2()">ondblClickme</button>
</body></html>
Department of CSE 15 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Department of CSE 16 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Mouseover()
<html>
<head>
<script >
function mouseoverevent()
</script>
</head>
<body>
</body>
</html>
OUTPUT:
Department of CSE 17 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Mouseout()
<html>
<head>
<title>mouse events</title>
<script language="javascript">
function fun2()
alert("bye");
</script>
</head>
<body>
</body>
</html>
OUTPUT:
Department of CSE 18 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Mousedown()
<html>
<head>
<script>
function sayHello()
</script>
</head>
<body>
</body>
</html>
OUTPUT:
Department of CSE 19 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Mouseup()
<html>
<head>
<script>
function sayHello()
alert("Mouse Up")
</script>
</head>
<body>
</body>
</html>
OUTPUT:
Department of CSE 20 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Keydown()
<html>
<script>
function myFunction()
document.getElementById("demo").style.backgroundColor = "red";
</script>
<body>
</body>
</html>
OUTPUT:
Department of CSE 21 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Keyup()
<html>
<script>
function handleKeyup()
</script>
<body>
</body>
</html>
OUTPUT:
Department of CSE 22 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Focus()
<html>
<body>
<script>
function focusevent()
document.getElementById("input").style.background="blue";
</script>
</body>
</html>
OUTPUT:
Department of CSE 23 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Blur()
<html>
<script>
function focusFunction()
document.getElementById("myInput").style.background = "yellow";
function blurFunction()
document.getElementById("myInput").style.background = “white";
</script>
<body>
<p>When you enter the input field, a function is triggered which sets the
background color to yellow. When you leave the input field, a function is triggered
which sets the background color to white.</p>
</body>
</html>
Department of CSE 24 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Onsubmit()
<html>
<body>
<form onsubmit="myFunction()">
<input type="text"><br>
<input type="text"><br>
<input type=“text"><br>
</form>
</body>
<script>
function myFunction()
</script>
</html>
OUTPUT:
Department of CSE 25 | P a g e
FULL STACK DEVELOPMENT 2024-2025
<html>
hello
</body>
</html>
OUTPUT:
Department of CSE 26 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Resize()
<html>
<body onresize="myFunction()">
<script>
function myFunction() {
</script>
</body>
</html>
OUTPUT:
Department of CSE 27 | P a g e
FULL STACK DEVELOPMENT 2024-2025
<html>
<body>
<head>
<style>
#frmCheckPassword {
background: #808080;
padding: 10px;
.demoInputBox {
padding: 7px;
border-radius: 4px;
#password-strength-status {
color: #FFFFFF;
border-radius: 4px;
Department of CSE 28 | P a g e
FULL STACK DEVELOPMENT 2024-2025
margin-top: 5px;
.medium-password {
background-color: #b7d60a;
.weak-password {
background-color: #ce1d14;
.strong-password {
background-color: #12CC1A;
</style>
</head>
<label>Password:</label>
Department of CSE 29 | P a g e
FULL STACK DEVELOPMENT 2024-2025
<div id="password-strength-status"></div>
</div>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
function checkPasswordStrength() {
if ($('#password').val().length < 6) {
$('#password-strength-status').removeClass();
$('#password-strength-status').addClass('weak-password');
} else {
if ($('#password').val().match(number) &&
$('#password').val().match(alphabets) &&
$('#password').val().match(special_characters)) {
$('#password-strength-status').removeClass();
$('#password-strength-status').addClass('strong-password');
$('#password-strength-status').html("Strong");
} else {
$('#password-strength-status').removeClass();
$('#password-strength-status').addClass('medium-password');
Department of CSE 30 | P a g e
FULL STACK DEVELOPMENT 2024-2025
</script>
</body>
</html>
OUTPUT:
Department of CSE 31 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Week-5. Write a program to create and Build a star rating system using
JQuery.
<!DOCTYPE html>
<head>
<script src =
"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
body {
background-color: aquamarine;
margin : 0px;
.fa-star {
font-size : 50px;
Department of CSE 32 | P a g e
FULL STACK DEVELOPMENT 2024-2025
align-content: center;
.container {
height: 100px;
width: 600px;
margin: auto;
</style>
</head>
<body>
</div>
</div>
<script>
$(document).ready(function() {
Department of CSE 33 | P a g e
FULL STACK DEVELOPMENT 2024-2025
$("#st1").click(function() {
$(".fa-star").css("color", "black");
$("#st1").css("color", "yellow");
});
$("#st2").click(function() {
$(".fa-star").css("color", "black");
});
$("#st3").click(function() {
$(".fa-star").css("color", "black")
});
$("#st4").click(function() {
$(".fa-star").css("color", "black");
});
$("#st5").click(function() {
$(".fa-star").css("color", "black");
Department of CSE 34 | P a g e
FULL STACK DEVELOPMENT 2024-2025
});
});
</script>
</body>
</html>
OUTPUT:
Department of CSE 35 | P a g e
FULL STACK DEVELOPMENT 2024-2025
index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AJAX Example</title>
<script>
function sendRequest() {
xhr.onload = function() {
if (xhr.status == 200) {
Department of CSE 36 | P a g e
FULL STACK DEVELOPMENT 2024-2025
document.getElementById('response').innerText =
xhr.responseText;
} else {
// Error occurred
};
xhr.send();
</script>
</head>
<body>
<p id="response"></p>
</body>
</html>
Server.js
app.use(express.static(__dirname));
});
app.listen(port, () => {
});
node server.js
OUTPUT
Department of CSE 38 | P a g e
FULL STACK DEVELOPMENT 2024-2025
<script>
var app = angular.module("myShoppingList", []);
app.controller("myCtrl", function($scope) {
$scope.products = ["Milk", "Bread", "Cheese"];
});
</script>
}
});
</script>
OUTPUT:
}
});
</script>
OUTPUT:
Department of CSE 41 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Create a calculatorTitle.js file for showing the title of the calculator and paste
the code given below for this file.
//calculatorTitle.js File
Now create a file outputScreenRow.js for taking input and showing the
output of the calculation.
// outputScreenRow.js File
import React from "react"; // Import React (Mandatory Step)
// Functional Component.
// Used to show Question/Answer.
const OutputScreenRow = () => {
return (
<div className="screen-row">
<input type="text" readOnly />
</div>
);
};
export default OutputScreenRow; // Export Output Screen Row
Department of CSE 42 | P a g e
FULL STACK DEVELOPMENT 2024-2025
// outputScreen.js File
import React from "react"; // Import React (Mandatory Step).
import OutputScreenRow from "./outputScreenRow.js"; // Import Output Screen Row.
// Functional Component.
// Use to hold two Screen Rows.
const OutputScreen = () => {
return (
<div className="screen">
<OutputScreenRow />
<OutputScreenRow />
</div>
);
};
export default OutputScreen; // Export Output Screen.
// button.js File
import React from "react"; // Import React (Mandatory Step)
// calculator.js File
// Imports.
import React from "react";
Department of CSE 43 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Department of CSE 44 | P a g e
FULL STACK DEVELOPMENT 2024-2025
</div>
);
}
}
export default Calculator; // Export Calculator Component
//index.js File
import React from "react";
import ReactDOM from "react-dom";
import Calculator from "./components/calculator.js";
OUTPUT
Department of CSE 45 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Src/App.js
vote (i) {
let newLanguages = [...this.state.languages];
newLanguages[i].votes++;
function swap(array, i, j) {
var temp = array[i];
array[i] = array[j];
array[j] = temp;
}
this.setState({languages: newLanguages});
render(){
return(
<>
<h1>Vote Your Language!</h1>
<div className="languages">
{
this.state.languages.map((lang, i) =>
<div key={i} className="language">
Department of CSE 46 | P a g e
FULL STACK DEVELOPMENT 2024-2025
<div className="voteCount">
{lang.votes}
</div>
<div className="languageName">
{lang.name}
</div>
<button onClick={this.vote.bind(this, i)}>Click Here</button>
</div>
)
}
</div>
</>
);
}
}
export default App;
Src/App.css
*{
margin: 0;
padding: 0;
}
body {
text-align: center;
color: #222;
font-size: 24px;
font-family: sans-serif;
}
h1 {
margin: 30px;
}
.languages {
height: 400px;
width: 400px;
margin: 10px auto;
Department of CSE 47 | P a g e
FULL STACK DEVELOPMENT 2024-2025
display: flex;
flex-direction: column;
}
.language {
flex: 1;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 40px;
background-color: blanchedalmond;
border: 1px solid #222;
margin: 2px;
}
.voteCount {
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.language button {
color: green;
background-color: #0000;
border: none;
font-size: 30px;
outline: none;
cursor: pointer;
}
OUTPUT:
Department of CSE 48 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Week-10. Write a server side program for Accessing MongoDB from Node.js.
Step 1: download mongodb from the below link
https://www.mongodb.com/try/download/community
Save the code above in a file called "demo_create_mongo_db.js" and run the file:
Run "demo_create_mongo_db.js"
OUTPUT:
Department of CSE 49 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Department of CSE 50 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Department of CSE 51 | P a g e
FULL STACK DEVELOPMENT 2024-2025
});
OUTPUT
Department of CSE 52 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Save the code above in a file called "demo_create_mongo_db.js" and run the file:
Run "demo_create_mongo_db.js"
OUTPUT:
console.log("Collection created!");
db.close();
});
});
Department of CSE 54 | P a g e
FULL STACK DEVELOPMENT 2024-2025
Department of CSE 55 | P a g e
FULL STACK DEVELOPMENT 2024-2025
OUTPUT
Step 6: Update the document with the address "Valley 345" to name="Mickey" and
address="Canyon 123":
Department of CSE 57 | P a g e
FULL STACK DEVELOPMENT 2024-2025
OUTPUT:
Department of CSE 58 | P a g e