My First Playground

node v8.17.0
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
var jsdom = require("jsdom@4.0.0") document = jsdom.jsdom("") el = document.createElement('a'); console.log('setting'); el.setAttribute('title', {toString: () => {console.log('stringifying'); return ''+Math.random(); }}); console.log('set'); console.log('reading'); console.log(el.getAttribute('title')); console.log(el.title);
Loading…

no comments

    sign in to comment