Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated QUnit and jQuery #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.swp
.idea
.idea
.vscode/
File renamed without changes.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
Update
Javascript Koans
======

## Overview

JavaScript Koans is an interactive learning environment that uses failing tests to introduce students to aspects of JavaScript in a logical sequence.

The inspiration for this project comes from the Edgecase Ruby Koans and the book 'Javascript: The Good Parts'.
The inspiration for this project comes from the [Edgecase Ruby Koans](http://www.rubykoans.com/) and the book '[Javascript: The Good Parts'](https://www.oreilly.com/library/view/javascript-the-good/9780596517748/).

## Getting Started

Open the file jskoans.htm in your favourite browser and make the tests pass.
Open the file [jskoans.htm](jskoans.htm) in your favourite browser and make the tests pass by editing the files located in the `topics` directory

## Further Information

The koans use the [Qunit](http://qunitjs.com/) test syntax and test runner.

Get started with Ryan Anklam's [Learn JavaScript completely On the Cloud With the JavaScript Koans and Cloud9 IDE](http://blog.bittersweetryan.com/2011/08/learn-some-javascript-completely-on.html)

## License

This project is under the MIT License:

* [MIT License](LICENSE)

78 changes: 41 additions & 37 deletions jskoans.htm
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="support/jquery-1.4.1.js"></script>
<link rel="stylesheet" href="support/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="support/qunit.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- This will silently fail when not running in a testem environment. Safe to ignore. -->
<script type="text/javascript" src="testem.js"></script>
<title>Javascript Koans</title>

<script type="text/javascript" src="support/koans.js"></script>
<script type="text/javascript" src="topics/about_asserts.js"></script>
<script type="text/javascript" src="topics/about_operators.js"></script>
<script type="text/javascript" src="topics/about_equality.js"></script>
<script type="text/javascript" src="topics/about_truthyness.js"></script>
<script type="text/javascript" src="topics/about_assignment.js"></script>
<script type="text/javascript" src="topics/about_control_structures.js"></script>
<script type="text/javascript" src="topics/about_strings.js"></script>
<script type="text/javascript" src="topics/about_numbers.js"></script>
<script type="text/javascript" src="topics/about_objects.js"></script>
<script type="text/javascript" src="topics/about_arrays.js"></script>
<script type="text/javascript" src="topics/about_reflection.js"></script>
<script type="text/javascript" src="topics/about_prototype_chain.js"></script>
<script type="text/javascript" src="topics/about_prototypal_inheritance.js"></script>
<script type="text/javascript" src="topics/about_functions_and_closure.js"></script>
<script type="text/javascript" src="topics/about_this.js"></script>
<script type="text/javascript" src="topics/about_scope.js"></script>
<script type="text/javascript" src="topics/about_regular_expressions.js"></script>
</head>
<body>
<h1 id="qunit-header">JavaScript Koans</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<h3 class="welcome_message">To begin, find the file 'topics/about_asserts.js', and complete the tests.</h3>
<h3 id="zen-help" style="display: none;"></h3>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
<script src="support/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="support/qunit-2.16.0.min.css" type="text/css" media="screen" />
<script type="text/javascript" src="support/qunit-2.16.0.min.js"></script>

<!-- This will silently fail when not running in a testem environment. Safe to ignore. -->
<script type="text/javascript" src="testem.js"></script>

<script type="text/javascript" src="support/koans.js"></script>
<script type="text/javascript" src="topics/about_asserts.js"></script>
<script type="text/javascript" src="topics/about_operators.js"></script>
<script type="text/javascript" src="topics/about_equality.js"></script>
<script type="text/javascript" src="topics/about_truthyness.js"></script>
<script type="text/javascript" src="topics/about_assignment.js"></script>
<script type="text/javascript" src="topics/about_control_structures.js"></script>
<script type="text/javascript" src="topics/about_strings.js"></script>
<script type="text/javascript" src="topics/about_numbers.js"></script>
<script type="text/javascript" src="topics/about_objects.js"></script>
<script type="text/javascript" src="topics/about_arrays.js"></script>
<script type="text/javascript" src="topics/about_reflection.js"></script>
<script type="text/javascript" src="topics/about_prototype_chain.js"></script>
<script type="text/javascript" src="topics/about_prototypal_inheritance.js"></script>
<script type="text/javascript" src="topics/about_functions_and_closure.js"></script>
<script type="text/javascript" src="topics/about_this.js"></script>
<script type="text/javascript" src="topics/about_scope.js"></script>
<script type="text/javascript" src="topics/about_regular_expressions.js"></script>
</head>
<body>
<h1 id="qunit-header">JavaScript Koans</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<h3 class="welcome_message">To begin, find the file 'topics/about_asserts.js', and complete the tests.</h3>
<h3 id="zen-help" style="display: none"></h3>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>
Loading