Skip to content

Practise your technical interview #17

@SallyMcGrath

Description

@SallyMcGrath

Link to the coursework

https://www.codewars.com/collections/cyf-js3

Why are we doing this?

In your technical interview, which will be fifteen minutes long, you may be asked to refactor code from your project. A good way to practice this is with Codewars.

  1. Complete a kata.
  2. Now complete it again, but using a different approach.

Some possible refactors

  • Extract a function
  • Organise your code so all the variables are defined, then the functions, then the logic
  • Rewrite as a fat arrow function
  • Rewrite a loop to a map
  • Rewrite with higher order functions, or refactor higher order functions to loops
  • Rewrite as a recursive function

Maximum time in hours

1

How to submit

This is for your own practice. No submission step.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions