---
title: "JavaScript: Language Fundamentals &amp; Modern Features"
lang: "en"
author: "Mohammad Abu Mattar"
canonical: https://mkabumattar.com/post/javascript-fundamentals-quiz
---

[Home](/)›[Quizzes](/quizzes)›[All Categories](/quizzes/categories)›[JavaScript](/quizzes/categories/javascript)

Quizzes

[Prev in JavaScriptAsync JavaScript: Promises, Async/Await, Event Loop](/quizzes/post/async-javascript-promises-quiz)[Next in JavaScriptReact Fundamentals: Components, Hooks & State Management](/quizzes/post/react-fundamentals-quiz)

[JavaScript](/quizzes/categories/javascript)[Programming](/quizzes/categories/programming)[Web Development](/quizzes/categories/web-development)[Frontend](/quizzes/categories/frontend)

# JavaScript: Language Fundamentals & Modern Features

[Mohammad Abu Mattar](/authors/mohammad-abu-mattar)20 QuestionsIntermediatePublished: 03 Feb 2026

[Markdown for AI(opens in a new tab)](/post/javascript-fundamentals-quiz/index.md "Open the plain-Markdown version of this page, for pasting into an AI tool")

Series

[Frontend Essentials](/series/frontend-essentials)1/4

[NextTypeScript: Typed JavaScript Fundamentals](/quizzes/post/typescript-fundamentals-quiz)

All posts in this series (4)

Quizzes4

1.  [JavaScript: Language Fundamentals & Modern FeaturesYou are here](/quizzes/post/javascript-fundamentals-quiz)
2.  [TypeScript: Typed JavaScript Fundamentals](/quizzes/post/typescript-fundamentals-quiz)
3.  [CSS Fundamentals: Selectors, Box Model & Styling](/quizzes/post/css-fundamentals-quiz)
4.  [HTML Semantics & Web Accessibility](/quizzes/post/html-semantics-accessibility-quiz)

## JavaScript: Language Fundamentals & Modern Features

Up to 20 questions, shuffled on every run

Quiz Configuration

Enterto start

Welcome to the JavaScript Basics Quiz! This quiz tests your understanding of fundamental JavaScript concepts, syntax, and modern programming best practices. Each question is multiple-choice, and you’ll find hints to help you along the way. Good luck!

Answer key and explanations20 questions

The quiz above draws 20 questions at random from these 30, so a second attempt will not be the same run. Everything in the pool is listed here.

1.  Which keyword is used to declare a block-scoped variable that can be reassigned?
    
    Answer\`let\`
    
2.  What is the result of "5" + 2 in JavaScript?
    
    Answer\`"52"\`
    
3.  How do you create a function using the arrow syntax?
    
    Answer\`const my\_func = () => {}\`
    
4.  What does "===" check that "==" does not?
    
    AnswerBoth the value and the type
    
5.  Which method is used to write text directly into the browser console?
    
    Answer\`console.log()\`
    
6.  What is the purpose of "document.querySelector()"
    
    AnswerSelecting an element by CSS
    
7.  Which of these is NOT a valid way to declare a variable in modern JS?
    
    Answer\`set\`
    
8.  What is a "Promise" in JavaScript?
    
    AnswerAn object for async task state
    
9.  Which array method creates a new array by performing a function on every element?
    
    Answer\`map()\`
    
10.  What does the "this" keyword refer to in a standard object method?
     
     AnswerThe object owning the method
     
11.  How do you convert a JSON string into a JavaScript object?
     
     Answer\`JSON.parse()\`
     
12.  What is "Hoisting" in JavaScript?
     
     AnswerMoving declarations to the top
     
13.  Which operator is used to spread the elements of an array into another array?
     
     Answer\`...\`
     
14.  What is an "anonymous function"?
     
     AnswerA function without a name
     
15.  Which of these is a "falsy" value in JavaScript?
     
     Answer\`0\`
     
16.  What is the purpose of the "async" keyword?
     
     AnswerTo return a Promise object
     
17.  How do you check the length of an array "myArr"?
     
     Answer\`myArr.length\`
     
18.  What does "DOM" stand for?
     
     AnswerDocument Object Model
     
19.  Which keyword is used to stop a loop immediately?
     
     Answer\`break\`
     
20.  What is the "event bubble"?
     
     AnswerEvent propagation upwards
     
21.  Which symbol is used for template literals?
     
     Answer\`Backticks (\` \`)\`
     
22.  What is the purpose of "use strict"?
     
     AnswerTo enforce cleaner code
     
23.  What is "null" in JavaScript?
     
     AnswerIntentional empty value
     
24.  Which method adds an item to the BEGINNING of an array?
     
     Answer\`unshift()\`
     
25.  What does "NaN" stand for?
     
     AnswerNot a Number
     
26.  Which function is used to execute a block of code after a specified delay?
     
     Answer\`setTimeout()\`
     
27.  How do you check if an object has a specific property?
     
     Answer\`key in object\`
     
28.  What is a "Closure"?
     
     AnswerPersistent scope access
     
29.  Which keyword is used to inherit from another class?
     
     Answer\`extends\`
     
30.  What is the default return value of a function that doesn't return anything?
     
     Answer\`undefined\`
     

## Tags

[#JavaScript](/quizzes/tags/javascript)[#ES6](/quizzes/tags/es6)[#Arrow Functions](/quizzes/tags/arrow-functions)[#Promises](/quizzes/tags/promises)[#DOM](/quizzes/tags/dom)[#Async/Await](/quizzes/tags/asyncawait)[#Web Development](/quizzes/tags/web-development)[#Frontend Development](/quizzes/tags/frontend-development)[#Programming](/quizzes/tags/programming)

## Share

[Facebook](https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz "Share on Facebook")[Twitter](https://twitter.com/intent/tweet/?text=JavaScript%3A%20Language%20Fundamentals%20%26%20Modern%20Features&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz "Share on Twitter")[LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz&title=JavaScript%3A%20Language%20Fundamentals%20%26%20Modern%20Features&summary=Test%20your%20knowledge%20of%20JavaScript%20fundamentals%20with%20this%20quiz%20covering%20variables%2C%20data%20types%2C%20functions%2C%20promises%2C%20DOM%20manipulation%2C%20ES6%20features%2C%20closures%2C%20and%20modern%20JavaScript%20programming%20best%20practices.&source=https://mkabumattar.com "Share on LinkedIn")[WhatsApp](https://wa.me/?text=JavaScript%3A%20Language%20Fundamentals%20%26%20Modern%20Features%20https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz "Share on WhatsApp")[Telegram](https://t.me/share/url?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz&text=JavaScript%3A%20Language%20Fundamentals%20%26%20Modern%20Features "Share on Telegram")[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz&title=JavaScript%3A%20Language%20Fundamentals%20%26%20Modern%20Features "Share on Reddit")[Hacker News](http://news.ycombinator.com/submitlink?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz&t=JavaScript%3A%20Language%20Fundamentals%20%26%20Modern%20Features "Share on Hacker News")[Pinterest](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz&media=&description=Test%20your%20knowledge%20of%20JavaScript%20fundamentals%20with%20this%20quiz%20covering%20variables%2C%20data%20types%2C%20functions%2C%20promises%2C%20DOM%20manipulation%2C%20ES6%20features%2C%20closures%2C%20and%20modern%20JavaScript%20programming%20best%20practices. "Share on Pinterest")[Email](<mailto:?subject=JavaScript%3A%20Language%20Fundamentals%20%26%20Modern%20Features&body=Check out this article: https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fjavascript-fundamentals-quiz>)

## Comments

Was this useful?

## You might also enjoy

More posts on similar topics

[![TypeScript: Typed JavaScript Fundamentals](/_astro/hero.BXknL-oV_plxRs.webp)](/quizzes/post/typescript-fundamentals-quiz)

## [TypeScript: Typed JavaScript Fundamentals](/quizzes/post/typescript-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [TypeScript](/quizzes/categories/typescript)
-   [Programming](/quizzes/categories/programming)
-   [Web Development](/quizzes/categories/web-development)
-   [Frontend](/quizzes/categories/frontend)

Welcome to the TypeScript Basics Quiz! This quiz covers fundamental TypeScript concepts, static typing, and type-safe programming best practices. Each question is multiple-choice, and you'll find hint

[#TypeScript](/quizzes/tags/typescript)[#Static Typing](/quizzes/tags/static-typing)[#Interfaces](/quizzes/tags/interfaces)+6 tags

[read more](/quizzes/post/typescript-fundamentals-quiz)

[![CSS Fundamentals: Selectors, Box Model & Styling](/_astro/hero.BuNubOK1_Z1Tx9uc.webp)](/quizzes/post/css-fundamentals-quiz)

## [CSS Fundamentals: Selectors, Box Model & Styling](/quizzes/post/css-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [CSS](/quizzes/categories/css)
-   [Frontend](/quizzes/categories/frontend)
-   [Quizzes](/quizzes/categories/quizzes)

Welcome to the CSS Fundamentals quiz! This quiz will test your knowledge of CSS basics, including selectors, the box model, properties, and layout techniques. Each question reinforces one concept so y

[#Css](/quizzes/tags/css)[#Css fundamentals](/quizzes/tags/css-fundamentals)[#Selectors](/quizzes/tags/selectors)+11 tags

[read more](/quizzes/post/css-fundamentals-quiz)

[![HTML Semantics & Web Accessibility](/_astro/hero.DeLGVsAp_ZP225h.webp)](/quizzes/post/html-semantics-accessibility-quiz)

## [HTML Semantics & Web Accessibility](/quizzes/post/html-semantics-accessibility-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [HTML](/quizzes/categories/html)
-   [Accessibility](/quizzes/categories/accessibility)
-   [Quizzes](/quizzes/categories/quizzes)

Welcome to the HTML Semantics & Accessibility Quiz! This quiz will test your knowledge of semantic HTML elements and web accessibility best practices. Each question has a hint to help you out, and you

[#Html](/quizzes/tags/html)[#Html semantics](/quizzes/tags/html-semantics)[#Accessibility](/quizzes/tags/accessibility)+11 tags

[read more](/quizzes/post/html-semantics-accessibility-quiz)

[![Async JavaScript: Promises, Async/Await, Event Loop](/_astro/hero.DK_l_9BQ_Z2vKlem.webp)](/quizzes/post/async-javascript-promises-quiz)

## [Async JavaScript: Promises, Async/Await, Event Loop](/quizzes/post/async-javascript-promises-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Backend](/quizzes/categories/backend)
-   [JavaScript](/quizzes/categories/javascript)

Welcome to the Async JavaScript quiz! Test your knowledge of Promises, async/await, the event loop, and advanced concurrency patterns. Each question has a hint and detailed explanations for all option

[#Async](/quizzes/tags/async)[#JavaScript](/quizzes/tags/javascript)[#Promises](/quizzes/tags/promises)

[read more](/quizzes/post/async-javascript-promises-quiz)

[![React Fundamentals: Components, Hooks & State Management](/_astro/hero.x4gPhQ21_Z2if49G.webp)](/quizzes/post/react-fundamentals-quiz)

## [React Fundamentals: Components, Hooks & State Management](/quizzes/post/react-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Frontend](/quizzes/categories/frontend)
-   [React](/quizzes/categories/react)
-   [JavaScript](/quizzes/categories/javascript)

Welcome to the React Fundamentals Quiz! This quiz will test your knowledge of core React concepts, including components, JSX, hooks, state management, props, and event handling. Whether you're new to

[#React](/quizzes/tags/react)[#Components](/quizzes/tags/components)[#Hooks](/quizzes/tags/hooks)+2 tags

[read more](/quizzes/post/react-fundamentals-quiz)

[![Vue.js Fundamentals: Reactive Components & Templates](/_astro/hero.DABD39Tr_eJkL.webp)](/quizzes/post/vuejs-fundamentals-quiz)

## [Vue.js Fundamentals: Reactive Components & Templates](/quizzes/post/vuejs-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Frontend](/quizzes/categories/frontend)
-   [Vue.js](/quizzes/categories/vuejs)
-   [JavaScript](/quizzes/categories/javascript)

Welcome to the Vue.js Basics Quiz! Vue.js is a progressive JavaScript framework for building user interfaces. Whether you're creating a simple interactive widget or a complex single-page application,

[#Vue.js](/quizzes/tags/vuejs)[#Components](/quizzes/tags/components)[#Reactive](/quizzes/tags/reactive)+1 tags

[read more](/quizzes/post/vuejs-fundamentals-quiz)

6 related posts
