Skip to content

[V3] Implement new Concept Exercise: equality #954

Closed
@kristinaborn

Description

@kristinaborn

This issue describes how to implement the equality concept exercise for the JavaScript track.

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:

Please also watch the following video:

Goal

This exercise aims to teach students how to compare values for equality.

Learning objectives

  • Know how to use the abstract equality operator ("double equals")
  • Know how to use the strict equality operator ("triple equals")
  • Know how to use Object.is()
  • Understand the difference in how primitives are handled by each of the value-comparison operations

Out of scope

  • SameValueZero
  • Deep object comparison

Concepts

  • equality

Prerequisites

  • strings
  • numbers
  • booleans
  • objects
  • type-conversion

After

  • SameValueZero
  • Which equality algorithm is used by common built-in methods like Array.indexOf and Array.includes
  • When to use Object.is() over strict equality comparison

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions