All 41 questions
What does TypeScript add to JavaScript, and what benefits does it provide?
Asked in 8 of 228 interviews · last asked Nov 19 · Concept · Junior
Show answer
TypeScript adds static type checking to JavaScript, with features like type annotations, interfaces, and generics. It catches many type errors before code runs and improves autocomplete, code navigation, and refactoring. TypeScript compiles to JavaScript, so its types do not check data at runtime.
- Type inference often checks types without explicit annotations.
- Type definitions make function inputs and outputs clearer.
- Editor tools use types to suggest code and help rename symbols safely.
- Static checks do not replace tests or runtime validation of external data.
What the interviewer checks: The interviewer is checking whether you understand static typing, tooling benefits, and the limits of compile-time checks.
Other ways it was asked
- “Why use TypeScript, and what benefits does it offer?”
- “What does TypeScript add on top of JavaScript, and what tooling benefits does it provide?”
- “What does TypeScript add to JavaScript, and why does that help with development?”
How do CommonJS require and ES module import differ?
Asked in 7 of 228 interviews · last asked Oct 19 · Concept · Junior
Show answer
`require()` is CommonJS syntax and loads modules synchronously; CommonJS exports use `module.exports`. ES modules use `import` and `export`; static imports are processed before the module runs. You can call `require()` conditionally, but static `import` must be at the top level. Dynamic `import()` works in both systems and returns a promise.
- In Node.js, `.cjs` means CommonJS, while `.mjs` means ES modules.
- For `.js` files, the nearest package.json's `type` field can explicitly select the module system.
- Static imports help build tools analyze dependencies and remove unused code through tree shaking.
- Recent Node.js versions can require ES modules only if their dependency graph has no top-level `await`.
What the interviewer checks: The interviewer checks whether you understand module syntax, loading behavior, and Node.js module support.
Other ways it was asked
- “What is the difference between require and import in Node.js?”
- “Could you clarify the syntax differences between require and import, and explain how their loading mechanisms affect module behavior in Node.js?”
- “What is the difference between `require` and `import` in Next.js?”
In an Electron app, what responsibilities belong in the main process versus the renderer process, and why?
Asked in 2 of 228 interviews · last asked Nov 20 · Concept · Mid-level
Other ways it was asked
- “In an Electron app, what responsibilities belong in the main process versus the renderer process? And why?”
- “In an Electron app, what responsibilities do you typically keep in the main process versus the renderer process, and why?”
How do you use jsPDF to generate a PDF, and what data do you pass to it?
Asked in 2 of 228 interviews · last asked Nov 17 · Tooling · Junior
Other ways it was asked
- “How do you use jsPDF, and what data do you pass to generate a PDF?”
How do you configure or extend Vite for a frontend project?
Asked once · last asked Mar 24 · Tooling · Mid-level
How is Node.js different from JavaScript in the browser?
Asked once · last asked Mar 26 · Concept · Junior
In Dynamics 365 JavaScript, how would you use a selected country lookup's GUID to retrieve the country record's ISO short name and populate it on the account?
Asked once · last asked Apr 4 · Tooling · Mid-level
Can impersonation be implemented in JavaScript in Dynamics 365?
Asked once · last asked Apr 6 · Concept · Mid-level
Write a JavaScript function for a Dynamics 365 contact form that makes one field read-only based on the value of another field.
Asked once · last asked Apr 6 · Write code · Mid-level
Can you invoke Microsoft Dynamics 365 actions from JavaScript?
Asked once · last asked Apr 16 · Concept · Mid-level
Can you give a quick example of what TypeScript catches that plain JavaScript wouldn’t?
Asked once · last asked Jul 20 · Concept · Junior
Should dependency lock files be committed, and how do they help ensure reproducible installs?
Asked once · last asked Sep 7 · Concept · Mid-level
Other ways it was asked
- “If you install several dependencies and the project generates lock JSON files, would you commit those files to the repository?”
- “How can you ensure reproducible, predictable installs across environments, and should dependency lock files be committed?”
In ES modules, how do import bindings behave compared to const? Can an imported value be reassigned, and why?
Asked once · last asked Oct 3 · Concept · Mid-level
Can you explain the four core pillars of webpack: entry, output, loaders, and plugins?
Asked once · last asked Oct 7 · Concept · Mid-level
In React Native development, what is Hermes, why might an app use it, and what is the purpose of the node_modules folder and why can it be large?
Asked once · last asked Oct 7 · Concept · Mid-level
Other ways it was asked
- “What is Hermes, and why might a React Native app use it? What is the node_modules folder, and why can it be large?”
What is Ajax, and how is it used in ServiceNow?
Asked once · last asked Oct 9 · Concept · Mid-level
What is the latest JavaScript version available on ServiceNow?
Asked once · last asked Oct 9 · Concept · Mid-level
Other ways it was asked
- “What version of JavaScript was ServiceNow on for the longest time before upgrading?”
How would you pass a variable value from the server side to the client side in a ServiceNow widget?
Asked once · last asked Oct 9 · Tooling · Mid-level
Other ways it was asked
- “If I needed to move a variable value from server side to the client side inside of a widget, how would I do that?”
In Node.js, how do you prevent a single unhandled promise or thrown error from crashing a production service while still failing requests correctly?
Asked once · last asked Oct 24 · Scenario · Senior
How would you use ExcelJS to export sales data to an Excel file?
Asked once · last asked Nov 17 · Tooling · Junior
Other ways it was asked
- “How would you implement exporting sales data to Excel with ExcelJS?”
What is TypeScript, and how does its type system work with JavaScript during compilation?
Asked once · last asked Oct 30 · Concept · Junior
When should I use ipcMain.handle with ipcRenderer.invoke versus ipcMain.on with ipcRenderer.send, especially for error handling and request-response behavior?
Asked once · last asked Nov 1 · Concept · Mid-level
What are the trade-offs between TypeScript and JavaScript?
Asked once · last asked Nov 2 · Concept · Mid-level
In Express, what is the difference between handling an error with a catch block and passing it to next(error)?
Asked once · last asked Nov 9 · Concept · Mid-level
How do you debug JavaScript in Power Pages?
Asked once · last asked Nov 10 · Tooling · Mid-level
How would you make a notifications panel in Power Pages refresh every 15 seconds without refreshing the whole page?
Asked once · last asked Nov 10 · Scenario · Mid-level
When would you use Liquid versus JavaScript to fetch records?
Asked once · last asked Nov 10 · Concept · Mid-level
How do you configure Module Federation?
Asked once · last asked Nov 13 · Tooling · Senior
If neither the host nor remote configures shared dependencies in Module Federation, will the application still work at runtime, and why?
Asked once · last asked Nov 13 · Scenario · Senior
In a micro-frontend architecture, what happens when a host passes new props to a remote by calling mount again?
Asked once · last asked Nov 13 · Scenario · Senior
What happens from the time you run `npm run dev` until you can open the page in a browser?
Asked once · last asked Nov 17 · Concept · Mid-level
What are the two TypeScript types that are not represented in JavaScript?
Asked once · last asked Aug 25 · Concept · Mid-level
How do you assign a module imported with `require` to a variable in JavaScript?
Asked once · last asked Sep 11 · Concept · Junior
How does `var` work in TypeScript?
Asked once · last asked Oct 7 · Concept · Junior
How do module imports and exports work in JavaScript?
Asked once · last asked Oct 25 · Concept · Junior
What is the difference between default and named exports in JavaScript?
Asked once · last asked Oct 25 · Concept · Junior
Would you combine the main JavaScript into one file?
Asked once · last asked Oct 26 · Scenario · Mid-level
Which would you choose for a new project, TypeScript or JavaScript, and why?
Asked once · last asked Nov 2 · Scenario · Mid-level
How is TypeScript transformed into JavaScript for use in a web browser?
Asked once · last asked Nov 2 · Concept · Mid-level
How would you use Babel in a project?
Asked once · last asked Nov 2 · Tooling · Mid-level
Other ways it was asked
- “How have you used Babel in a project?”
What do `require` and `dotenv` do?
Asked once · last asked Nov 17 · Concept · Junior
More JavaScript interview questions
- All JavaScript interview questions
- JavaScript Basics Interview Questions
- JavaScript Async and Event Loop Interview Questions
- React, Redux and RxJS Interview Questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every JavaScript interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
228 interviews, 160 candidates, Nov 2025 to Nov 2026. Updated every month with new interviews.
Or add the Chrome extension