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

55 questions

12345
  • Why they ask this: The company wants to know whether you fit their budget and whether you have researched the market.

    How to answer

    • Research first: check salary data for your role and experience level in Nepal (for example TechHire salary insights), ask seniors, and read job posts that show salary bands.
    • Give a realistic monthly range in NPR, with the lower end being an amount you would genuinely accept.
    • Mention that you are flexible depending on the full package: festival bonus (Dashain allowance), provident fund (PF) and citizen investment trust (CIT) contributions, insurance, learning budget, and work-from-home days.
    • Ask whether the figure is gross or net of tax if it is unclear.
    • If asked very early, it is fine to ask about the role's budgeted range first.

    Avoid: saying "anything is fine", giving a single number far above the market, or using your personal expenses as the reason.

    Sample answer · STAR

    "Based on my research on salary data and job posts for junior React developers in Kathmandu with internship experience, I'm looking for around NPR 35,000 to 45,000 per month before tax.

    That said, I'm flexible. Learning opportunities, mentorship and benefits like PF and festival allowance matter to me too. Could you share the budgeted range for this role?"

    (Replace the numbers with your own research: ranges change with the role, city, company size and your skills.)

    Open full page
  • Why they ask this: Shows whether you understand how async code actually runs, which matters for debugging ordering and UI freezes.

    Answer

    Open full page
  • Why they ask this: Filters out candidates who cannot write a simple loop with conditions; order of checks is the classic trap.

    Return a list of strings for the numbers 1 to n where: multiples of 3 become "Fizz", multiples of 5 become "Buzz", multiples of both 3 and 5 become…

    Open full page
  • Why they ask this: Interviewers want to know whether you stayed active and how honestly you talk about setbacks.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: A classic fundamentals check that also reveals whether you understand let/const and the temporal dead zone.

    Answer

    Open full page
  • Why they ask this: Checks counting with a hash map and comparing frequency, a pattern used in many string problems.

    Given two lowercase strings a and b, return true if b is an anagram of a (it uses exactly the same letters the same number of times), otherwise false. Example 1…

    Open full page
  • Why they ask this: Checks self-awareness and whether you actively work on improving yourself.

    How to answer

    Sample answer · STAR

    Open full page
  • Why they ask this: Bugs with lost this in callbacks are common, and the answer shows depth beyond syntax.

    Answer

    Open full page
  • Why they ask this: A classic dynamic programming problem that shows whether you can improve an O(n²) idea to O(n).

    Given an integer array nums with at least one element, find the contiguous subarray with the largest sum and return that sum. Example 1 Example 2

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

    Answer

    Open full page
  • Why they ask this: Shows whether you researched the company or are sending the same answer everywhere.

    How to answer

    Sample answer · STAR

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

    Answer

    Open full page

JavaScript runs your code on one thread with a call stack. Async work (timers, network, DOM events) is handled by the browser or Node.js, and their callbacks are queued.

The event loop repeats:

  1. Run the current script until the call stack is empty.
  2. Run all microtasks: promise callbacks (.then, await continuations) and queueMicrotask.
  3. Let the browser render if needed.
  4. Take one macrotask (task) such as a setTimeout callback or an event handler, run it, and go back to step 2.
js
console.log('1');
setTimeout(() => console.log('2'), 0);
Promise.resolve().then(() => console.log('3'));
console.log('4');
// Output: 1, 4, 3, 2

Microtasks always run before the next timer, even a 0 ms one. A long synchronous loop blocks everything, including clicks and rendering.

Gaps are common, for example waiting for results, preparing for Lok Sewa, visa or family reasons, or a slow job market. Answer honestly and briefly, then move quickly to what you did to keep growing: courses, projects, freelancing, open-source work or volunteering.

Avoid: long excuses, blaming others, or pretending there was no gap.

"After my BE results in 2025, I spent about six months helping with our family business in Butwal while my father recovered from an illness.

(Task) I didn't want my skills to fall behind during that time.

(Action) I set myself a routine of two hours a day: I completed a Laravel course, built a stock-tracking app for our own shop, and published it on GitHub with a README and a live demo on Render.

(Result) The shop still uses that app, and the project taught me more about real requirements than any tutorial. Now that my family situation is stable, I'm fully focused on starting my career as a backend developer."

Hoisting means declarations are processed before code runs, so they are known in their whole scope.

  • Function declarations are hoisted with their body, so you can call them before they appear.
  • var is hoisted and initialised to undefined.
  • let, const and class are hoisted too, but stay uninitialised (the temporal dead zone) until the declaration line runs. Accessing them earlier throws a ReferenceError.
js
greet();            // works
function greet() { console.log('Namaste'); }

console.log(a);     // undefined
var a = 1;

console.log(b);     // ReferenceError
let b = 2;

Function expressions (const greet = () => {}) follow the rules of the variable they are assigned to.

Choose a real, non-critical weakness (not a core requirement of the job), show what you are doing about it, and give evidence of improvement.

Avoid: fake weaknesses ("I'm a perfectionist", "I work too hard"), and weaknesses that disqualify you (for example "I can't work in a team" for a team role).

"My weakness has been speaking up in meetings, especially with senior people.

(Situation) During my internship, I noticed an issue in an API response format but didn't mention it in the stand-up. It cost the team a day of rework later.

(Action) Since then I write down my points before every meeting, and I made a rule to share at least one update or question in each stand-up. I also joined a local developer meetup in Kathmandu and gave a five-minute lightning talk.

(Result) In my last two months of the internship, my mentor said my updates were among the clearest on the team. It still takes effort, but it no longer stops me from raising problems early."

this depends on how a function is called, not where it is written:

Call stylethis
obj.method()obj
plain fn()undefined in strict mode (the global object otherwise)
new Fn()the new object
fn.call(x) / fn.apply(x) / fn.bind(x)x
arrow functionthis of the surrounding scope (arrows have no own this)
js
const user = {
  name: 'Hari',
  hello() { return this.name; },
  later() { setTimeout(() => console.log(this.name)); }, // arrow keeps `this`
};

const fn = user.hello;
fn(); // `this` is lost: undefined in strict mode

Fix lost this with an arrow function or .bind(obj).

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))
  .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.

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.

"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'.