JavaScript Engineer
FrontendPosted 3 days agovia Himalayas, a remote job board
- Work type
- RemoteIn India, the US, Germany and Singapore
- Experience
- 2+ years
- Pay
- Not listedUsually ₹6.2 LPAFrontend, median at 1–4 years, in India (Payscale)
- Posted
- 3 days ago
Skills it mentions
Add your skills to see which ones you have.
About the job
Originally posted on Himalayas
Interested?JavaScript Engineer at SME Careers
Apply on Himalayas (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on JavaScript, Node.js, Webpack and 6 more
Interview questions for this job
For the skills the ad mentions: JavaScript, Node.js, Webpack, LLMs and GenAI, React, Angular, Vue, NestJS and TypeScript.
Have you ever used JavaScript templating? If so, what libraries have you used?JavaScript
Yes. Handlebars, Underscore, Lodash, AngularJS, and JSX. I disliked templating in AngularJS because it made heavy use of strings in the directives and typos would go uncaught. JSX is my new favorite as it is closer to JavaScript and there is barely any syntax to learn. Nowadays, you can even use ES2015 template string literals as a quick way for creating templates without relying on third-party code.
const template = `<div>My name is: ${name}</div>`;However, do be aware of a potential XSS in the above approach as the contents are not escaped for you, unlike in templating libraries.
From Front End Interview Handbook (MIT)
What is the purpose of Node.js module.exports and how do you use it?Node.js
module.exportsis the object that's actually returned as the result of arequirecall.The
exportsvariable is initially set to that same object (i.e. it's a shorthand "alias"), so in the module code you would usually write something like this:let myFunc1 = function() { ... }; let myFunc2 = function() { ... }; exports.myFunc1 = myFunc1; exports.myFunc2 = myFunc2;to export (or "expose") the internally scoped functions
myFunc1andmyFunc2.And in the calling code you would use:
const m = require('./mymodule'); m.myFunc1();where the last line shows how the result of
requireis (usually) just a plain object whose properties may be accessed.NB: if you overwrite
exportsthen it will no longer refer tomodule.exports. So if you wish to assign a new object (or a function reference) toexportsthen you should also assign that new object tomodule.exportsIt's worth noting that the name added to the
exportsobject does not have to be the same as the module's internally scoped name for the value that you're adding, so you could have:let myVeryLongInternalName = function() { ... }; exports.shortName = myVeryLongInternalName; // add other objects, functions, as requiredfollowed by:
const m = require('./mymodule'); m.shortName(); // invokes module.myVeryLongInternalNameFrom Stack Overflow: asked by mrwooster, answered by Alnitak (CC BY-SA 4.0)
where is create-react-app webpack config and files?Webpack
If you want to find webpack files and configurations go to your package.json file and look for scripts
You will find that scripts object is using a library react-scripts
Now go to node_modules and look for react-scripts folder react-script-in-node-modules
This react-scripts/scripts and react-scripts/config folder contains all the webpack configurations.
From Stack Overflow: asked by Mohammad, answered by Vikram Thakur (CC BY-SA 4.0)
Explain the greedy search decoding strategy and its main drawback.LLMs and GenAI
The greedy search decoding strategy in LLMs is a straightforward method where the model selects the token with the highest probability as the next word at each step of the generation process. This approach is highly efficient and deterministic, always producing the same output for a given input. Its primary drawback, however, is its shortsightedness.
By only focusing on the locally optimal choice, it often fails to find a sequence with the globally highest overall probability, potentially leading to repetitive, less coherent, or suboptimal text.
From LLM Interview Questions and Answers Hub (Apache 2.0)
What is the difference between an element and a component in React?ReactBasic
An element is a plain JavaScript object that represents a DOM node or component. Elements are pure and never mutated, and are cheap to create.
A component is a function or class. Components can have state and take props as input and return an element tree as output (although they can represent generic containers or wrappers and don't necessarily have to emit DOM). Components can initiate side effects in lifecycle methods (e.g. AJAX requests, DOM mutations, interfacing with 3rd party libraries) and may be expensive to create.
const Component = () => "Hello" const componentElement = <Component /> const domNodeElement = <div />Good to hear
- Elements are immutable, plain objects that describe the DOM nodes or components you want to render.
- Components can be either classes or functions, that take props as an input and return an element tree as the output.
From 30 seconds of interviews (MIT)
Why should we hire you?Behavioural
The strengths employers look for will depend on the job role. They may ask you questions like:
- what are your main strengths?
- why should we hire you?
You can use specific examples to highlight your strengths, such as:
- communication - to show you get on with others
- problem solving - to show that you can find solutions
- enthusiasm - to show that you have a positive attitude to work
- flexibility - to show that you can adapt to different ways of working
Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Web DeveloperZensar, India, on-siteToday
- Frontend Developer - Fully Remote | Upto $85/hrmercor, Remote in India +7Today
- Frontend DeveloperWeekday, Bengaluru, on-siteYesterday
- Software Engineer-Front EndAir Arabia, Pune, on-site2 days ago
More like this: Frontend developer jobs in India (194) and Remote Frontend developer jobs in India (119)



