Hello Everyone,
I'd want to try and develop some questions targeting a JavaScript + jQuery with a bit of HTML, and I'm thinking along these lines:
https://stackoverflow.com/questions/1801160/can-i-use-jquery-with-node-js
where I'd need to do something along these lines:
npm install jquery jsdom
in order to:
var jsdom = require('jsdom');
const { JSDOM } = jsdom;
const { window } = new JSDOM();
const { document } = (new JSDOM('')).window;
global.document = document;
var $ = jQuery = require('jquery')(window);
...
Perhaps I'd want to develop questions to let students practice (some of) jQuery functions to manipulate DOM, use CSS selectors — playing with HTML documents one way or another.
I'm wondering how difficult would it be to allow installing additional NodeJS modules?
Kind regards,
Constantine