All these Katas exercises are taken from the site es6katas
You can try these solutions directly from tdbin tddbin simply copy the following solutions and "run tests"
- 1: template strings - basic
- 2: template strings - multiline
- 3: template strings - tagged
- 4: template strings - String.raw
- 5: arrow functions - basics
- 6: arrow functions - binding
- 7: block scope - let
- 8: block scope - const
- 9: object-literals - basics
- 10: destructuring - array
- 11: destructuring - string
- 12: destructuring - object
- 13: destructuring - defaults
- 14: destructuring - parameters
- 15: destructuring - assign
- 16: object-literals - computed properties
- 17: unicode - in strings
- 18: rest - as-parameter
- 19: rest - with-destructuring
- 20: spread - with-arrays
- 21: spread - with-strings
- 22: class - creation
- 23: class - accessors
- 24: class - static keyword
- 25: class - extends
- 26: class - more-extends
- 27: class - super inside a method
- 28: class - super in constructor
- 29: array -
Array.from
static method - 30: array -
Array.of
static method - 31: array -
Array.prototype.fill
method - 32: array -
Array.prototype.find
method - 33: array -
Array.prototype.findIndex
- 34: symbol - basics
- 35: symbol - for
- 36: symbol - keyfor
- 37: iterator/iterable - array
- 38: iterator/iterable - string
- 39: iterator/iterable - protocol
- 40: iterator/iterable - usage
- 41: array - entries
- 42: array -
Array.prototype.keys
- 43: array -
Array.prototype.values
- 44: Map - basics
- 45: Map.prototype.get()
- 46: Map.prototype.set()
- 47: Set - basics
- 48: Set - add
- 49: Generator - creation
- 50: Generator - iterator
- 51: Generator - Yield Expressions
- 52: Generator - Send value to a generator
- 53: Map - initialize
- 54: Object - is
- 55: Number - isInteger
- 56: Generator - Send function to a generator
- 57: Default parameters - basics
- 58: Reflect - basics
- 59: Reflect - apply
- 60: Reflect - getPrototypeOf
- 61: modules - import
- 62: Map -
has()
- 63: String -
includes()
- 64: Set - delete
- 65: Set - API overview
- 66: object-literal - getter
- 67: object-literal - setter
- 68: Reflect - construct
- 69: Reflect - defineProperty
- 70: Set - clear
- 71: String -
repeat()
- 72: String -
startsWith()
- 73: Generator -
return
inside a generator is special - 74: String -
endsWith()
- 75: Promise - basics
- 76: Promise - creation
- 77: Promise - chaining
- 78: Promise - API overview
- 79: Promise - catch