Mon 21 Jul 22:43:21 CEST 2025

This commit is contained in:
sbosse 2025-07-21 23:15:00 +02:00
parent 92d4517902
commit 4a321341f4

11
js/doc/list-demo.js Normal file
View File

@ -0,0 +1,11 @@
var List = require('./list');
// instantiate
var list = new List({
type:'-',
});
// list is an Array, so you can `push`, `unshift`, `splice` and friends
list.push('First line','Second line');
list.push('A long line with more text that says list is an Array, so you can "push", "unshift", "splice" and friends');
console.log(list.toString());