Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script type="text/javascript" src="http://jeromecovington.github.io/jasmine-all/jasmine-all.js"></script>
</head>
<body>
</body>
</html>
 
function max(num1, num2) {
  return num1 > num2 ? num1 : num2; 
}
describe("max", function(){
  it("can return the greatest of two numbers", function(){
    expect(max(1,2)).toEqual(2);
    expect(max(3,2)).toEqual(3);
  });
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
jeromecovingtonpro
0viewers