From 432c8c59a9d9c0b5687da4d98a7f605c4b8f4e47 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Mon, 2 Oct 2023 03:36:13 +0300 Subject: [PATCH] comments --- docs/examples/fibonacci/index.js | 2 ++ docs/examples/plot/index.js | 4 ++++ docs/examples/todos-preact/index.js | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/docs/examples/fibonacci/index.js b/docs/examples/fibonacci/index.js index 9050d3e..cc7a500 100644 --- a/docs/examples/fibonacci/index.js +++ b/docs/examples/fibonacci/index.js @@ -1,3 +1,5 @@ +// Fibonacci numbers + function fib(n) { if(n == 0 || n == 1) { return n diff --git a/docs/examples/plot/index.js b/docs/examples/plot/index.js index cb8741e..27bdec1 100644 --- a/docs/examples/plot/index.js +++ b/docs/examples/plot/index.js @@ -13,6 +13,10 @@ const langs = _(repos.items) import {barY} from "https://cdn.jsdelivr.net/npm/@observablehq/plot@0.6/+esm"; +/* + Move the cursor to the following line and see the plot displayed alongside the code +*/ + barY(langs, {x: "language", y: "count", sort: {x: "y", reverse: true}, fill: 'purple'}) .plot() diff --git a/docs/examples/todos-preact/index.js b/docs/examples/todos-preact/index.js index 886a851..3b9268a 100644 --- a/docs/examples/todos-preact/index.js +++ b/docs/examples/todos-preact/index.js @@ -1,3 +1,7 @@ +/* + Example of TODO HTML5 app built using preact library +*/ + import {h, render} from 'https://unpkg.com/preact?module'; import {createApp, handler, connect} from './app.js'