nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

javascript/Functions

First-class values that carry their own scope, their own this, and sometimes their own surprises.

10 QuestionsIntermediateHigh Priority ~12 min read

Functions in JavaScript are first-class values — they can be assigned to variables, passed as arguments, returned from other functions, and stored in data structures, which is what makes patterns like callbacks, higher-order functions, and functional composition possible. But not all functions behave the same way: function declarations are hoisted in full, function expressions are not, and arrow functions differ from both in a way that goes deeper than syntax.

Arrow functions don't have their own this, arguments object, or prototype — they lexically inherit this from wherever they're defined, which makes them predictable inside callbacks but wrong for methods that need their own this. Regular functions, meanwhile, get a fresh this determined by how they're called, not where they're defined, which is the root of most 'why is this undefined' bugs.

What you'll walk away knowing

The difference between function declarations, function expressions, and arrow functions in hoisting and behavior
Why arrow functions don't bind their own this, and when that's the right or wrong choice
What a higher-order function is, and how functions being first-class values enables it
How default parameters, rest parameters, and the arguments object interact (and where arguments doesn't exist)
1What is function overloading?Intermediate2What are pure functions?Intermediate3Explain the concept of a 'callback function' and provide an example of its usage.Beginner4What are higher-order functions?Intermediate5What is the difference between an arrow function and a regular function?Intermediate6What are arrow functions and when would you use them?Intermediate7What is a first class function?Intermediate8What is class function?Intermediate9What is an immediately invoked function expression (IIFE)?Intermediate10What is the difference between a function declaration and a function expression?Intermediate11What is an anonymous function?Intermediate12What are function statements?Beginner13What is typeof of a function?Intermediate14How do you define a function in JavaScript?Intermediate15What is a function in JavaScript?Beginner16What is the constructor function?Intermediate17What is function expression?Intermediate18What is this length property of a function?Intermediate
All Topics
1
Basics
Data Types
Functions
Objects
2
Engine
JIT
V8
Event Loop and Runtime
Concurrency and Threading
Bytecode and Parsing
Execution Context
Garbage Collector
3
this
Call Apply Bind
Closure
Error Handling
4
String Operations
Array Operations
Iterator and Generator
Modules
5
Events
Promises
Web Workers
Web Sockets
6
Functional Programming
Currying
Higher Order Functions
Memoisation
7
ES6 Classes
ES6
PWA
Web Assembly
Browser APIS
8
Security
Code
Polyfills
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.