NJT.JS, NJT.DOM & NJT.Req
Description
The JS, Dom & Req modules are pretty straight forward
- JS has some simple helper functions
- DOM has all the functions you need to select elements from the DOM
- Req saves you a few lines when you need to make GET or POST web requests
This example uses Req to get a JSON file, JS to simplify validating it and DOM to get then update an element based on an attribute to create the following list:
List of New Cities
- New York
- New Delhi
- New Batmania
Console
Page is loaded Making GET request Loaded GET request Response passed validation Targets found: 1 Finished updating DOM