MEAN Stack Developer
Full-stackPosted 5 weeks agofrom Distro's own hiring page
- Work type
- On-siteDelhi NCR
- Experience
- 5+ years
- Pay
- Not listedUsually ₹14 LPAFull-stack, median at 5–9 years, in India (Payscale)
- Posted
- 5 weeks ago
Skills it mentions
Add your skills to see which ones you have.
About the job
Interested?MEAN Stack Developer at Distro
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on JavaScript, HTML and CSS, Node.js and 11 more
Interview questions for this job
For the skills the ad mentions: JavaScript, HTML and CSS, Node.js, TypeScript, Angular, React, Vue, REST APIs, Microservices, AWS, Azure, CI/CD, Docker and Linux.
var functionName = function() {} vs function functionName() {}JavaScript
The difference is that
functionOneis a function expression and so only defined when that line is reached, whereasfunctionTwois a function declaration and is defined as soon as its surrounding function or script is executed (due to hoisting).For example, a function expression:
// TypeError: functionOne is not a function functionOne(); var functionOne = function() { console.log("Hello!"); };And, a function declaration:
// Outputs: "Hello!" functionTwo(); function functionTwo() { console.log("Hello!"); }Historically, function declarations defined within blocks were handled inconsistently between browsers. Strict mode (introduced in ES5) resolved this by scoping function declarations to their enclosing block.
'use strict'; { // note this block! function functionThree() { console.log("Hello!"); } } functionThree(); // ReferenceErrorFrom Stack Overflow: asked by Richard Garside, answered by Greg (CC BY-SA 4.0)
Is there a CSS parent selector?HTML and CSS
The W3C's Selectors Level 4 Working Draft includes a
:has()pseudo-class that provides this capability, among others:li:has(> a.active) { /* styles to apply to the li tag */ }All major browsers support this selector. Refer to https://caniuse.com/css-has to check if your target browser or browser versions have support for it.
You may need to resort to using JavaScript if your target browser does not fully support this feature.
From Stack Overflow: asked by jcuenod, answered by Dan Herbert (CC BY-SA 4.0)
Is there a way to get the version from the 'package.json' file in Node.js code?Node.js
I found that the following code fragment worked best for me. Since it uses
requireto load thepackage.json, it works regardless of the current working directory.var pjson = require('./package.json'); console.log(pjson.version);A warning, courtesy of @Pathogen:
Doing this with Browserify has security implications.
Be careful not to expose yourpackage.jsonto the client, as it means that all your dependency version numbers, build and test commands and more are sent to the client.
If you're building server and client in the same project, you expose your server-side version numbers too. Such specific data can be used by an attacker to better fit the attack on your server.From Stack Overflow: asked by Abhik Bose Pramanik, answered by Mark Wallace (CC BY-SA 4.0)
'unknown' vs. 'any'TypeScript
You can read more about
unknownin the PR or the RC announcement, but the gist of it is:[..] unknown which is the type-safe counterpart of any. Anything is assignable to unknown, but unknown isn't assignable to anything but itself and any without a type assertion or a control flow based narrowing. Likewise, no operations are permitted on an unknown without first asserting or narrowing to a more specific type.
A few examples:
let vAny: any = 10; // We can assign anything to any let vUnknown: unknown = 10; // We can assign anything to unknown just like any let s1: string = vAny; // Any is assignable to anything let s2: string = vUnknown; // Invalid; we can't assign vUnknown to any other type (without an explicit assertion) vAny.method(); // Ok; anything goes with any vUnknown.method(); // Not ok; we don't know anything about this variableThe suggested usage is:
There are often times where we want to describe the least-capable type in TypeScript. This is useful for APIs that want to signal “this can be any value, so you must perform some type of checking before you use it”. This forces users to safely introspect returned values.
From Stack Overflow: asked by Jac Mos, answered by Titian Cernicova-Dragomir (CC BY-SA 4.0)
Angular/RxJS When should I unsubscribe from `Subscription`Angular
TL;DR
For this question there are two kinds of Observables - finite value and infinite value.
httpObservables produce finite (1) values and something like a DOM event listener Observable produces infinite values.If you manually call
subscribe(not using async pipe), thenunsubscribefrom infinite Observables.Don't worry about finite ones, RxJs will take care of them.
Sources:
Read the rest at the sourceFrom Stack Overflow: asked by Sergey Tihon, answered by seangwright (CC BY-SA 4.0)
What is the STAR method, and how do you use it to answer?Behavioural
Use the STAR method to prepare for interviews and to show your skills and experience on a CV or application form.
What STAR stands for
- Situation - the situation you had to deal with
- Task - the task you were given to do
- Action - the action you took
- Result - what happened as a result of your action and what you learned from the experience
When to use STAR
You can use the STAR method in your:
- CV
- cover letter
- application form - usually in a further information section
- interview
How to use STAR
You can use the STAR method to structure the examples you give to questions, especially in interviews.
A job description lists the skills and qualities the employer is looking for. You can use the STAR method to show how you meet these.
It can help to look at common interview questions when preparing.
When using STAR, remember to:
- use examples that work for you - these could be from work, home or volunteering
- keep examples short and to the point
- try to get your points across in a conversational way so as not to appear too rehearsed
- be prepared to answer follow-up questions about the examples you give
Example 1 - leadership skills
Tell me about a time when you have shown leadership skills.
Situation - in my previous digital marketing job, the company wanted to get more people to sign up to a newsletter which was not receiving a lot of attention.
Task - my job was to find a way of getting more people to sign up.
Action - I organised a meeting with other members of the marketing team to come up with creative ideas, and I led the social media campaign to generate interest in the revamped newsletter.
Result - over a period of 3 months, there was an 25% increase in sign-ups to the newsletter and the approach I took was used by the management team in other departments.
Example 2 - teamwork
Tell me about a time you have worked as part of a team?
Situation - when I was at school, I was part of the netball team. We needed to raise funds to buy more equipment for the team.
Task - my job was to work with the rest of the team to set up a bake sale to raise money.
Action - I took the lead and found out who wanted to help with the bake sale. I then held a meeting so we could work out dates and what tasks each person would do. I made sure that we were all clear what our role was and everyone who wanted to, got a chance to get involved.
Result - the bake sale was a success due to the team all pulling together. We raised £200 and were able to buy new equipment for the netball team.
Example 3 - problem solving
Give me an example of when you faced a problem at work. How did you handle it?
Read the rest at the sourceFrom National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Java & React - Fullstack LeadSopra Steria India, Delhi NCR, hybrid2 days ago
- Full Stack EngineerAccenture, Pune, Hyderabad +4, on-site2 days ago
- Sr. Full stack Engineer 4BGenpact, Delhi NCR, hybrid2 days ago
- .NET Full Stack DeveloperPlan A Technologies, Remote in IndiaToday
More like this: Full-stack developer jobs in Delhi NCR (42), Jobs in Delhi NCR (3,520) and Full-stack developer jobs in India (709)



