TypeScript Exercises

μ›ν‹°λ“œ μ„Έμ…˜μ—μ„œ μΆ”μ²œ 받은 νƒ€μž…μŠ€ν¬λ¦½νŠΈ 문제 풀이 μ‚¬μ΄νŠΈ 링크arrow-up-right

총 16λ‹¨κ³„μ˜ λ¬Έμ œκ°€ 있고, 9단계 이상이면 νƒ€μž… μŠ€ν¬λ¦½νŠΈμ— μžμ‹ κ°μ„ 가져도 λœλ‹€κ³  ν•œλ‹€.

ν˜„μž¬ νƒ€μž…μŠ€ν¬λ¦½νŠΈ μˆ˜μ€€ 확인 κ²Έ 풀이λ₯Ό μ‹œμž‘ν•΄λ³΄μž !

/*

Welcome to:

    ................................................................
    .                                                              .
    .     ####################    ####################      E      .
    .     ####################    ####################      X      .
    .             ####            ####                      E      .
    .             ####            ####                      R      .
    .             ####            ####################      C      .
    .             ####                            ####      I      .
    .             ####                            ####      S      .
    .             ####            ####################      E      .
    .             ####            ####################      S      .
    .                                                              .
    ................................................................

    The goal: Let everyone play with many different TypeScript features
    and get an overview of TypeScript capabilities and principles.

    Things to cover:

        1. Basic typing.
        2. Refining types.
        3. Union types.
        4. Merged types.
        5. Generics.
        6. Type declarations.
        7. Module augmentation.
        8. Advanced type mapping.

    Rules and principles:

        1. Avoid using "any" type at all costs.
        2. Difficulty quickly grows one exercise after another.
        3. Feel free to send pull requests if you've come up
           with improvements!
        4. Provide feedback to the creator of these exercises.
        5. Enjoy.

Brief UI guide:

    +--------------------------------------------------------------+
    | TypeScript exercises                                         |
    +--------------------------------------------------------------+
    | Exercises 1Β·2Β·3Β·4...   << Navigate through exercises >>      |
    +---------------+----------------------------------------------+
    | Files         | file.ts   << Filename and status >>          |
    +---------------+----------------------------------------------+
    | file.ts       | 1  import {x} from 'y';                      |
    | dir           | 2                                            |
    |   sub.ts      | 3                                            |
    |               |                                              |
    | << Current    |   << Currently selected file code editor >>  |
    | exercise file |                                              |
    | structure >>  +----------------------------------------------+
    |               |                                              |
    |               |   << Errors to fix in order to proceed >>    |
    |               |                                              |
    +---------------+----------------------------------------------+

*/

Last updated