Git Product home page Git Product logo

coercion-visual-demo's Introduction

Coercion Visual Demo

this is an interactive demo about javascript type coercion in '==' (loosy equalling operator) It follows the complicated ECMA spec coercion rules to show every step of type conversions happened in a coercion.

Running in Cloud

Warning: I have only test my automation script on Google Cloud Platform. If you're running them on any other host, I'm assuming you know how to modify bash script to fix potential failures.

How to deploy:

create a new vm that runs latest debian, then ssh into it and paste the following

wget https://raw.githubusercontent.com/nendonerd/coercion-visual-demo/master/deploy.sh
sudo chmod 777 deploy.sh
./deploy.sh

deploy.sh can accept two OPTIONAL parameters, ./deploy.sh <name> <repo>

After finished installation, it will show your external ip address at the bottom, copy it and paste into a browser, have fun!

How to update:

cd cocercion
sudo chmod 777 update.sh
./update.sh

Running in local

just simply open index.html with a browser

Or run in inside vscode locally with quokka.js pro plugin

Shift + Cmd + P -> quokka start

Todo list:

  • add quick tests to frontend
  • unit testing
  • fix JSON.stringify(NaN) => null bug
  • fix double result bug
  • add a domain for the example
  • better css visuals (type highlighting)
  • node interface

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.