Skip to content

Error in lesson 3 chapter 2 in make a pokedex in TS #95

@Youg-Otricked

Description

@Youg-Otricked

Create an add() method that adds a new entry to the cache object. It should take a key (a string) and a val (a T generic).
Create a get() method that gets an entry from the cache object. It should take a key (a string) and returns some object. Return undefined if the entry is missing.
Great, now we can add and remove entries from our cache... but we don't want it to just grow forever! Let's add a loop that cleans up old entries.
I belive it intends to say add and retrive entries becuase it doesnt say to make a remove method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions