Skip to content

igor-pavlichenko/footer-pagination-exercise

Repository files navigation

footer-pagination-exercise

Installation

Clone / download the .zip and run npm install.

Running tests

Run npm test from terminal.

Executing the function from terminal

  • run ts-node-start in terminal
  • copy-paste the import statement below, hit enter, and start typing js
import { pagination } from './index';
console.log(pagination(4, 5, 1, 0));
$ 1 ... [4] 5