/js-allonge-six-ed

Testing the book Javascript Allongé "six" edition code and examples

Primary LanguageJavaScript

Javascript Allonge "Six" edition tests

Testing the book Javascript Allongé, the "Six" Edition code and examples.

Setting environment

npm init
npm install --save-dev jest

Configure tests at package.json

"scripts": {
    "test": "jest"
},

Run tests

npm run tests

Optional settings

"test:watch": "jest --watch",
"test:coverage": "jest --coverage"

Chapters

Prelude: Values and Expressions over Coffee

A Rich Aroma: Basic Numbers (1-5)

The first sip: Basic Functions (5-55)

AsLittleAsPossibleAboutFunctions,ButNoLess........................ 7 Ah.I’dLiketoHaveanArgument,Please. ............................. 16 ClosuresandScope............................................ 21 ThatConstantCoffeeCraving..................................... 26 NamingFunctions ............................................ 39 CombinatorsandFunctionDecorators................................ 45 BuildingBlocks.............................................. 48 MagicNames............................................... 51 Summary.................................................. 55