Skip to content

Instantly share code, notes, and snippets.

View brmendez's full-sized avatar
👨‍💻
Focusing

Brian brmendez

👨‍💻
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<script>
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
<html>
<header>
<script>
function startGameLoop()
{