<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-javascript-classes-without-the-class-keyword-wfw2bb2rs" -->

---
title: Using JavaScript classes without the `class` keyword
description: Before ES6 introduced the `class` keyword in 2015, JavaScript developers used constructor functions and prototype manipulation to implement OOP patterns. This...
canonical: https://daily.dev/posts/using-javascript-classes-without-the-class-keyword-wfw2bb2rs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using JavaScript classes without the `class` keyword | daily.dev
og:description: Before ES6 introduced the `class` keyword in 2015, JavaScript developers used constructor functions and prototype manipulation to implement OOP patterns. This...
og:url: https://daily.dev/posts/using-javascript-classes-without-the-class-keyword-wfw2bb2rs
og:image: https://api.daily.dev/og/posts/Wfw2bb2RS.png
og:image:alt: Using JavaScript classes without the `class` keyword
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using JavaScript classes without the `class` keyword

**[Playful Programming](https://daily.dev/sources/playfulprogramming)** · [@crutchcorn](https://daily.dev/crutchcorn) · 6 min read · 0 upvotes · 0 comments

## Summary

Before ES6 introduced the `class` keyword in 2015, JavaScript developers used constructor functions and prototype manipulation to implement OOP patterns. This post walks through how to replicate class features without the `class` keyword: creating instances with constructor functions, adding methods via prototype assignment, extending classes using `Object.create` for proper prototype chaining and `instanceof` support, and attaching static methods directly to the function object.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://playfulprogramming.com/posts/js-classes-without-keyword>

## Similar posts on daily.dev

- [The Fall of JavaScript](https://daily.dev/posts/the-fall-of-javascript-ozwmn73zr) · Yegor's Blog · 154 upvotes · 20 comments
- [Simplifying JavaScript Prototypes in Constructor Invocation](https://daily.dev/posts/simplifying-javascript-prototypes-in-constructor-invocation-o5gw2maba) · Telerik · 0 upvotes · 0 comments
- [JavaScript this Keyword Explained: Objects, Classes, Arrow Functions, and Interview Questions](https://daily.dev/posts/javascript-this-keyword-explained-objects-classes-arrow-functions-and-interview-questions-qhe5plx8x) · Medium · 3 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/using-javascript-classes-without-the-class-keyword-wfw2bb2rs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Using JavaScript classes without the `class` keyword","url":"https://daily.dev/posts/using-javascript-classes-without-the-class-keyword-wfw2bb2rs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-javascript-classes-without-the-class-keyword-wfw2bb2rs"},"datePublished":"2026-03-16T21:46:30.161Z","dateModified":"2026-03-17T18:00:31.477Z","description":"Before ES6 introduced the `class` keyword in 2015, JavaScript developers used constructor functions and prototype manipulation to implement OOP patterns. This...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/87eba77f6e35d2c26ec66645392021ee?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/87eba77f6e35d2c26ec66645392021ee?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Playful Programming","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Corbin Crutchley","url":"https://daily.dev/crutchcorn","image":"https://avatars.githubusercontent.com/u/9100169?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":400}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/using-javascript-classes-without-the-class-keyword-wfw2bb2rs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,javascript","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Playful Programming","item":"https://daily.dev/sources/playfulprogramming"},{"@type":"ListItem","position":3,"name":"Using JavaScript classes without the `class` keyword"}]}
```

