Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.02 KB

readme.MD

File metadata and controls

25 lines (18 loc) · 1.02 KB

Palidrome definition

  • the empty string is a palindrome;
  • a string constituted only by a single character is a palindrome;
  • a string c s d is a palindrome, if s is a palindrome and c is a character equal to d;
  • nothing else is a palindrome.

Unit Tests

Run unit tests via

  • npm run tests
  • directly in VSCode with 'F5'

Read about Red, Green, Refactor TDD pattern.

Jest.js

Jest Documentation

Explore Jest matchers (.ToBe() is a matcher, there are many matchers).

Debugging

Add a debugger; line to cause the debugger to break. You may then step through the code with F5 (Continue), F10 (Step Over), and F11 (Step Out). Learn more Debugging in VSCode.

Recursion

Basics

Advanced study: Turning recursion into iterative functions