Get started with labjs CDN

MIT licensed

Lab.js is a popular library for creating interactive, data-driven HTML5 web applications.

Tags:
  • loader

Stable version

Copied!

How to start using labjs CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with labjs CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/labjs/2.0.3/LAB.min.js"></script>
</head>
<body>
  <button id="run-test">Run Test</button>
  <script>
    const assert = lab.assert;

    lab.test('Simple Test', function () {
      const expected = 2;
      const actual = 1 + 1;

      assert.strictEqual(actual, expected);
    });

    document.getElementById('run-test').addEventListener('click', function () {
      lab.run();
    });
  </script>
</body>
</html>
Copied!
Copied!

All versions