cogent interview experience Real time questions & tips from candidates to crack your interview

Full Stack Engineer

cogent
upvote
share-icon
2 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 Months
Topics: JavaScript, NODEjs, ExpressJs, React, React Hooks, MongoDB.
Tip
Tip

Tip 1 : Basics of JavaScript should be very strong.
Tip 2 : NODEjs and ExpressJs API creation and Routing.
Tip 3 : Knowledge of intermidiete React and React Hooks

Application process
Where: Linkedin
Eligibility: Graduate
Resume Tip
Resume tip

Tip 1 : Make it single page
Tip 2 : Mention every certificate, tech stack, internships and jobs

Interview rounds

01
Round
Easy
HR Round
Duration30 Minutes
Interview date7 May 2022
Coding problem1

Asked about the reason of switching jobs. Normal basic poersonal details.

1. Basic HR Questions

1. Personal Details

2. Reason behind switching job

02
Round
Easy
Online Coding Test
Duration60 Minutes
Interview date7 May 2022
Coding problem1

Asked to create a simple login route using NodeJs ExpressJs and MongoDb

1. Web Development Question

How would approach a normal login API in the backend.

Problem approach

router.post('/login', (req, res) => {
const { email, password } = req.body;
User.findOne({ email })
.then((user) => {
if (!user) {
return res
.status(400)
.json({ error: 'User does not exist' });
}
if (
user &&
bcrypt.compareSync(
password,
user.password
)
) {
const token = jwt.sign(
{ userId: user._id, email: user.email },
'secretkey',
{ expiresIn: '1h' }
);
user.token = token;
return res.json({ user });
}
return res
.status(400)
.json({ error: 'Wrong password' });
})
.catch((err) =>
res.status(400).json({ error: err })
);
});

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Full Stack Engineer
4 rounds | 11 problems
Interviewed by Sprinklr
1298 views
0 comments
0 upvotes
company logo
Full Stack Engineer
2 rounds | 5 problems
Interviewed by HashedIn
0 views
0 comments
0 upvotes