Skip to content

Instantly share code, notes, and snippets.


Brian brmendez

View GitHub Profile
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script id="jsbin-javascript">
View carrace.html
function Car(make, horsePower, weight){
this.make = make
this.horsePower = horsePower
this.weight = weight
this.distance = 0
this.traveled = function(){
return Math.floor((Math.random() * 10)) * horsePower / weight
View hw2gameloop.html
function startGameLoop()
You can’t perform that action at this time.