Web Developer
FrontendPosted 2 weeks agofrom Sauce Labs's own hiring page
- Work type
- HybridDelhi NCR
- Experience
- 3–7 years
- Pay
- Not listedUsually ₹6.2–14 LPAFrontend, median at 1–9 years, in India (Payscale)
- Posted
- 2 weeks ago
Skills it mentions
Nice to have
Add your skills to see which ones you have.
About the job
Location - Gurugram, India (Hybrid)
This is a hybrid role based out of our Gurugram, India office, 3 days in the office, 2 days remote (from home).
About Us
Sauce Labs is the world’s largest full-lifecycle, test automation platform, and the company behind Selenium. Trusted by 80% of the world’s top ten largest financial institutions and over 300,000 enterprise users, Sauce Labs provides the only AI platform capable of turning business intent into autonomous testing and quality assurance. With a proprietary dataset of 8.7 billion test runs, Sauce Labs empowers the Fortune 2000 to bridge the gap between AI-driven code generation and enterprise-grade software quality. Learn more at http://saucelabs.com.
Release Assurance at the Speed of AI | Meet the new Sauce Labs
The Role
We are looking for a Web Developer to join our team at Sauce Labs! In this role, you’ll bring your expertise in headless CMS’s and the necessary coding languages to build, support, and optimize our website. You will play a critical role in maintaining the performance, scalability, and functionality of our website, ensuring it meets the evolving needs of our business and users. This role requires a developer who is collaborative, detail-oriented, and proactive in solving technical challenges.
Responsibilities
- Key owner of back-end and front-end development, optimization, and infrastructure of the saucelabs.com website.
- Collaborate closely with Demand Gen and Marketing Operations to develop an optimized back-end in our CMS to allow for flexible landing page building experience for editors.
- Lead projects end-to-end — maintaining timelines, stakeholder expectations, ticket triaging, and regularly troubleshooting and optimizing the website.
- Troubleshoot any bugs reported by Sauce Labs team and triage efficiently.
- Build and maintain comprehensive testing strategies to ensure code quality, reliability, and performance.
- Assess and audit existing CMS to simplify our implementation and recommend a more streamlined set-up (which could be the same CMS or migrating to a new one).
Required Skills
- 3-7 years of development experience using HTML, CSS, and JavaScript.
- 3+ years of development experience in React/Typescript, frameworks (Next.js, Gatsby), headless CMS (Contentful or Sanity), backend technologies (Node.js, Express), and server rendered & statically generated sites.
- Knowledge of website analytics tools like Google Analytics and Google Tag Manager.
- Experience working on SEO-driven projects, localization, performance optimization & experimentation.
Nice to Haves
- Worked on conversion rate optimization standard methodologies, using A/B testing to achieve results.
- Experience with CI/CD pipelines for automated deployment workflows.
Please note our Privacy Policy for Applicants when applying for a job at Sauce Labs.
Sauce Labs is proud to be an Equal Opportunity employer and values diversity at our company. We do not discriminate on the basis of race, religion, color, national origin, gender identity/expression/status, sexual orientation, age, marital status, veteran status or disability status.
Security responsibilities at Sauce
At Sauce, we will commit to supporting the health and safety of employees and properties, partnering with internal stakeholders to learn and act on ever-evolving security protocols and procedures. You’ll be expected to fully comply with all policies and procedures related to security at the department and org wide level and exercise a ‘security first’ approach to how we design, build & run our products and services.
Interested?Web Developer at Sauce Labs
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on HTML and CSS, JavaScript, React and 6 more
Interview questions for this job
For the skills the ad mentions: HTML and CSS, JavaScript, React, TypeScript, Next.js, Node.js, SEO, Statistics and CI/CD.
How do you serve a page with content in multiple languages?HTML and CSS
I will assume that it is asking about the most common case, which is how to serve a page with content available in multiple languages, but the content within the page should be displayed only in one consistent language.
When an HTTP request is made to a server, the requesting user agent usually sends information about language preferences, such as in the
Accept-Languageheader. The server can then use this information to return a version of the document in the appropriate language if such an alternative is available. The returned HTML document should also declare thelangattribute in the<html>tag, such as<html lang="en">...</html>.Of course this is useless for letting a search engine know that the same content is available in different languages, and so you must also make use of the
hreflangattribute in the<head>. Eg.<link rel="alternate" hreflang="de" href="http://de.example.com/page.html" />In the back end, the HTML markup will contain
i18nplaceholders and content for the specific language stored in YML or JSON formats. The server then dynamically generates the HTML page with content in that particular language, usually with the help of a back end framework.From Front End Interview Handbook (MIT)
Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"?JavaScript
I use
javascript:void(0).Three reasons. Encouraging the use of
#amongst a team of developers inevitably leads to some using the return value of the function called like this:function doSomething() { //Some code return false; }But then they forget to use
return doSomething()in the onclick and just usedoSomething().A second reason for avoiding
#is that the finalreturn false;will not execute if the called function throws an error. Hence the developers have to also remember to handle any error appropriately in the called function.A third reason is that there are cases where the
onclickevent property is assigned dynamically. I prefer to be able to call a function or assign it dynamically without having to code the function specifically for one method of attachment or another. Hence myonclick(or on anything) in HTML markup look like this:onclick="someFunc.call(this)"OR
onclick="someFunc.apply(this, arguments)"Using
javascript:void(0)avoids all of the above headaches, and I haven't found any examples of a downside.So if you're a lone developer then you can clearly make your own choice, but if you work as a team you have to either state:
Use
href="#", make sureonclickalways containsreturn false;at the end, that any called function does not throw an error and if you attach a function dynamically to theonclickproperty make sure that as well as not throwing an error it returnsfalse.OR
Use
href="javascript:void(0)"The second is clearly much easier to communicate.
From Stack Overflow: asked by 2cBGj7vsfp, answered by AnthonyWJones (CC BY-SA 3.0)
Why we need to be careful when spreading props on DOM elements?React
When we spread props we run into the risk of adding unknown HTML attributes, which is a bad practice. Instead we can use prop destructuring with
...restoperator, so it will add only required props.For example,
const ComponentA = () => ( <ComponentB isDisplay={true} className={"componentStyle"} /> ); const ComponentB = ({ isDisplay, ...domProps }) => ( <div {...domProps}>{"ComponentB"}</div> );From ReactJS Interview Questions & Answers (MIT)
Does Typescript support the ?. operator? (And, what's it called?)TypeScript
Yes. As of TypeScript 3.7 (released on November 5, 2019), this feature is supported and is called Optional Chaining:
At its core, optional chaining lets us write code where TypeScript can immediately stop running some expressions if we run into a
nullorundefined. The star of the show in optional chaining is the new?.operator for optional property accesses.Refer to the TypeScript 3.7 release notes for more details.
Prior to version 3.7, this was not supported in TypeScript, although it was requested as early as Issue #16 on the TypeScript repo (dating back to 2014).
As far as what to call this operator, there doesn't appear to be a consensus. In addition to "optional chaining" (which is also what it's called in JavaScript and Swift), there are a couple of other examples:
- CoffeeScript refers to it as the existential operator (specifically, the "accessor variant" of the existential operator):
The accessor variant of the existential operator
?.can be used to soak up null references in a chain of properties. Use it instead of the dot accessor.in cases where the base value may be null or undefined.- C# calls this a null-conditional operator.
a null-conditional operator applies a member access,
?., or element access,?[], operation to its operand only if that operand evaluates to non-null; otherwise, it returnsnull.- Kotlin refers to it as the safe call operator.
There are probably lots of other examples, too.
From Stack Overflow: asked by Marty Pitt, answered by Donut (CC BY-SA 4.0)
Next.js Redirect from / to another pageNext.js
Update: Next.js >= 13 with AppDir enabled
You can usenext/navigationto redirect both in client components and server components.Ex. in pages :
import { redirect } from 'next/navigation'; export default async function Home({ params }) { redirect('/hello-nextjs'); // ... }Ex. In client components:
'use client'; import { useEffect } from 'react'; import { useRouter } from 'next/navigation'; export const Home= () => { const { push } = useRouter(); useEffect(() => { push('/hello-nextjs'); }, []); return <p></p>; };Update: Next.js >= 12.1
As @warfield pointed out in his answer from next.js >= 12.1 relative URLs are no longer allowed in redirects and using them will throw an error. I'm reposting here his answer for more visibility :To redirect using middleware with Next.js >= 12.1:
- Create a
middleware.ts(or .js) file at the same level as yourpagesdirectory - Export a
middlewarefunction - Create an absolute URL and pass it to
redirect
TypeScript example
middleware.ts:import { NextResponse } from 'next/server' import type { NextRequest } from 'next/server' export function middleware(request: NextRequest) { const url = request.nextUrl.clone() if (url.pathname === '/') { url.pathname = '/hello-nextjs' return NextResponse.redirect(url) } }Update: Next.js >= 12
Now you can do redirects using middleware, create a_middleware.jsfile inside the pages folder (or any sub folder inside pages)import { NextResponse, NextRequest } from 'next/server' export async function middleware(req, ev) { const { pathname } = req.nextUrl if (pathname == '/') { return NextResponse.redirect('/hello-nextjs') } return NextResponse.next() }Update: Next.js >= 10
From Next.js 10 you can do server side redirects (see below for client side redirects) with a
redirectkey insidegetServerSidePropsorgetStaticProps:export async function getServerSideProps(context) { const res = await fetch(`https://.../data`) const data = await res.json() // or use context.resolvedUrl for conditional redirect // if(context.resolvedUrl == "/") if (!data) { return { redirect: { destination: '/hello-nextjs', permanent: false, }, } } return { props: {}, // will be passed to the page component as props } }Note : Using
getServerSidePropswill force the app to SSR,also redirecting at build-time is not supported , If the redirects are known at build-time you can add those inside next.config.jsIn
next.jsyou can redirect after the page is loaded usingRouterex :import Router from 'next/router' componentDidMount(){ const {pathname} = Router if(pathname == '/' ){ Router.push('/hello-nextjs') } }Or with Hooks :
import React, { useEffect } from "react"; import Router from 'next/router' ... useEffect(() => { const {pathname} = Router if(pathname == '/' ){ Router.push('/hello-nextjs') } });If you want to prevent the flashing before the redirect you can use a simple trick :
Read the rest at the sourceFrom Stack Overflow: asked by Arthur, answered by Nico (CC BY-SA 4.0)
- Create a
Why do you think you're a good fit for our company?Behavioural
Employers want to see that you have a genuine interest in working for them by asking questions like:
- what do you know about our company?
- why do you think you're a good fit for our company?
- why do you want to work for us?
To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.
Show what you've learned about the company throughout the interview.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Frontend UI Developer - React.js, Next.js, ReduxiProspect Boston, Bengaluru, Pune +2, on-site6 days ago
- Sr. Frontend Engineer 4BGenpact, Delhi NCR, hybrid11 days ago
- Frontend DeveloperValtech, Bengaluru, Pune +2, on-site2 weeks ago
- Senior Software Engineer - Frontend (Passkeys)Bitwarden, Delhi NCR, on-site2 weeks ago
More like this: Jobs in Delhi NCR (3,520) and Frontend developer jobs in India (194)



