TechHire NepalConnecting Talent, Building Careers
Find JobsCompaniesCourses
Find Talents
Sign inGet Started →
Find JobsCompaniesCourses
Find Talents
Sign inGet StartedHire Talent
TechHire Nepal

Nepal's #1 tech job platform. Connecting top talent with the best companies.

For Job Seekers

  • Browse Jobs
  • Companies
  • Tech Salaries
  • Interview Prep
  • Courses
  • Career Advice

For Employers

  • Post a Job
  • Talent Search
  • Pricing
  • Employer Dashboard

Company

  • About
  • Blog
  • Careers
  • Contact

Resources

  • Training Institutes
  • Projects
  • Tutorials
  • Roadmaps
  • Notes
  • Open Sources

Community

  • Discussions
  • Tech Events
  • Hackathons
  • Developer Meetups
  • Tech News

More

  • Help & Support
  • Salary Tax Calculator
  • Company Registration Guide
  • Labour Act

Stay in the loop

A weekly digest of the best tech articles and jobs in Nepal.

© 2026 TechHire Nepal. All rights reserved.

Privacy PolicyTerms of ServiceCookie Policy
HomeInterview PrepQuestion bank
Question bank

Interview Questions, Answered Clearly

Filter by the role you are applying for, open a question, and practise explaining the answer out loud. Mark it practised when you can.

Type
TechnicalCodingHR / BehaviouralAll types
Role
All rolesFrontend DeveloperBackend DeveloperFull-Stack DeveloperMobile Developer
Topic
All topicsJavaScript10React7HTML & CSS7PHP & Laravel9SQL & Databases6HTTP & REST APIs6Git4OOP & Design4Flutter5React Native5Arrays & Hashing4Strings3Searching & Stacks2Logic Basics1HR Basics9Behavioural (STAR)3
Level
AnyEasyMediumHard

68 questions

12345
  • Why they ask this: Almost every app calls APIs; interviewers check you can write and handle async code correctly.

    Answer

    A Promise represents a value that will be available later (pending, then fulfilled or rejected). async/await is syntax on top of promises that makes async code read like synchronous code.

    js
    // Promise chain
    fetch('/api/jobs')
      .then((res) => res.json())
      .then((jobs) => console.log(jobs))
      .
    
    
    
    
    
    
    
    
    
    
    
    Open full page
  • Why they ask this: Shows whether you researched the company or are sending the same answer everywhere.

    How to answer

    Research the company beforehand: its products and clients, its tech stack (job posts, engineering blog, GitHub), its culture, and recent news. Connect two specific things about them to your goals and skills.

    Avoid: "because it's a big company", focusing only on salary, or generic praise that could apply to anyone.

    Sample answer · STAR

    Open full page
  • Why they ask this: A quick fundamentals question that checks attention to detail.

    Answer

    Open full page
  • Why they ask this: Checks basic use of sets or hash maps, and whether you think about preserving order.

    Given an array of integers, return a new array with duplicates removed, keeping the first occurrence of each value in its original order. Try it without a…

    Open full page
  • Why they ask this: The company wants to know whether your goals fit the role and whether you are likely to stay and grow with them.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: Tests your understanding of DOM event bubbling and performance with dynamic lists.

    Answer

    Open full page
  • Why they ask this: Tests recursion and how you handle data of unknown depth, which is common with JSON from APIs.

    Given an array that can contain numbers and other arrays nested to any depth, return a single flat array with all the values in their original order. Example

    Open full page
  • Why they ask this: Deadlines are constant in software jobs; interviewers want to see prioritisation and calm, not heroics.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: Common in search boxes, scroll and resize handlers; shows you think about performance.

    Answer

    Open full page
  • Why they ask this: The standard stack problem; it shows you can pick the right data structure for matching pairs.

    Given a string s containing only the characters (, ), {, }, [ and ], return true if: every opening bracket is closed by the same type of bracket, and brackets…

    Open full page
  • Why they ask this: Technology changes constantly, so companies hire juniors who can learn on their own.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: Asked at the end of almost every interview. Good questions show genuine interest and help you judge the company.

    How to answer

    Sample answer · STAR

    Open full page
catch
((
err
)
=>
console.
error
(err));
// async/await
async function loadJobs() {
try {
const res = await fetch('/api/jobs');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
return await res.json();
} catch (err) {
console.error(err);
}
}

Points worth mentioning:

  • An async function always returns a promise.
  • Use try/catch for errors with await.
  • Run independent requests in parallel with await Promise.all([...]) instead of awaiting one after another.

"Three reasons. First, your product: I've used your hotel-booking platform when planning a trip to Mustang, and I like that it works well even on a slow mobile connection, which is the kind of engineering I want to learn.

Second, your stack: your job post mentions Laravel and Vue with automated testing, which matches what I've been practising in my projects.

Third, I read on your engineering blog that juniors get a mentor and pair-program in their first three months. Learning from experienced developers is my priority at this stage, so that's very appealing to me."

  • undefined means a value was never assigned: an uninitialised variable, a missing object property, a missing function argument, or a function with no return.
  • null is an intentional "no value" that a developer assigns.
js
let a;              // undefined
const obj = {};
obj.missing;        // undefined
let b = null;       // explicitly empty

typeof undefined;   // 'undefined'
typeof null;        // 'object' (a historical bug)
null == undefined;  // true
null === undefined; // false

Use ?? (nullish coalescing) to give a default for both: const name = input ?? 'Guest'.

Show ambition that fits the company: growing your technical depth, taking ownership, and helping others. Keep it realistic and linked to the path this role offers.

Avoid: "abroad" or "running my own company" as your main answer, saying you want the interviewer's job, or "I don't know".

"In five years I'd like to be a strong mid-level or senior backend developer: someone the team trusts to design and own a feature end to end, from database design to deployment and monitoring.

I'd also like to be mentoring juniors the way I hope to be mentored here, and to have deeper knowledge of system design and performance. I see this role as the right first step because it combines real production work with the chance to learn from senior engineers."

Most DOM events bubble up from the target element to its ancestors. Event delegation puts one listener on a parent and uses event.target to work out which child was clicked.

js
document.querySelector('#todo-list').addEventListener('click', (event) => {
  const button = event.target.closest('button.delete');
  if (!button) return;
  button.closest('li').remove();
});

Benefits:

  • One listener instead of hundreds, which uses less memory.
  • Works for elements added later, with no need to re-attach listeners.

Use event.stopPropagation() carefully, because it breaks delegation for listeners higher up.

Show how you prioritised, communicated early about risks, and delivered something useful, even if that meant reducing scope.

Avoid: stories that rely on skipping sleep for days as the main strategy, or a deadline you missed without learning anything.

Situation: During my internship, a client needed an event-registration form live in three days for a conference in Kathmandu, and the developer who started it had fallen sick.

Task: I had to finish the form, the admin list and the confirmation emails.

Action: On the first morning I listed every remaining task and agreed with my supervisor which were must-haves (registration, validation, confirmation email) and which could wait (CSV export, payment integration). I posted a short progress update every evening and flagged on day two that email delivery needed the client's SMTP details, so we got them in time.

Result: The must-have features went live a day early, more than 400 people registered, and we added the CSV export the following week. I learnt that agreeing on priorities and raising blockers early matters more than working longer hours.

Both limit how often a function runs:

  • Debounce: run the function only after events stop for a given time. Typical use: a search box that calls the API 300 ms after the user stops typing.
  • Throttle: run the function at most once per interval while events keep firing. Typical use: a scroll handler that runs every 200 ms.
js
function debounce(fn, delay = 300) {
  let timer;
  return (...args) => {
    clearTimeout(timer);
    timer = setTimeout(() => fn(...args), delay);
  };
}

const onSearch = debounce((q) => fetch(`/api/search?q=${encodeURIComponent(q)}`));

Describe how you learn: official documentation, a small proof of concept, asking for help at the right moment. Then show the result of applying it.

Avoid: only listing courses or certificates without showing that you used the skill.

Situation: In my internship, the team decided to add push notifications to their Flutter app, and nobody had used Firebase Cloud Messaging before.

Task: My mentor asked me to research it and build a working prototype within one week.

Action: I read the official FlutterFire documentation first, then built a tiny separate app that only received a test notification. Once that worked, I wrote down the setup steps for Android and iOS and the problems I hit, such as notification permissions on Android 13. I asked a senior for a 20-minute review before integrating it into the main app.

Result: The prototype worked on day four, the feature shipped in the next release, and my setup notes became the team's internal guide. My approach now is always: documentation, a tiny prototype, notes, and then integration.

Always have two or three questions ready. Saying "No, everything is clear" is a missed opportunity. Good questions are about the work, the team and growth:

  • "What would a typical first month look like for this role?"
  • "How do junior developers get feedback: code reviews, mentoring, one-to-ones?"
  • "What does the tech stack look like, and what are you planning to change?"
  • "How do you measure success for this position after six months?"
  • "What are the next steps in the hiring process, and when can I expect to hear back?"

Ask about salary and leave after an offer or when HR raises it, unless they ask you first.

"Yes, thank you. I have two questions.

First, what would success look like for someone in this role after the first three months?

Second, how does the team review code? I'd like to understand how juniors get feedback so I can improve quickly.

And finally, what are the next steps in the process?"