Skip to content

Instantly share code, notes, and snippets.

@koficypher
Created January 16, 2019 15:52
Show Gist options
  • Save koficypher/4773d88b809459af57196443612bf877 to your computer and use it in GitHub Desktop.
Save koficypher/4773d88b809459af57196443612bf877 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/tutolov
<!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">
/***
JS Homework #1
Name: Kofi Cypher
Email: [email protected]
***/
var title = 'Young Days';
var artist = 'Vivian Paul';
var durationInSecs = 180;
var genre = 'Afro Soul';
var album = {
title: 'Young Life',
yearReleased: '10-01-1999',
label: 'FireTune Records',
published: true,
};
var stats = {
rating: 7,
airplay: 700,
getAirplay : function(){
console.log('Played '+ this.airplay+ ' times across all airwaves.')
}
};
var otherTracks = ['A kiss from a rose', 'Mind Games', 'One more night','Old days','Watch Men'];
console.log(title);
console.log(artist);
console.log(durationInSecs);
console.log(genre);
console.log(album);
console.log(stats);
console.log(otherTracks);
</script>
<script id="jsbin-source-javascript" type="text/javascript">/***
JS Homework #1
Name: Kofi Cypher
Email: [email protected]
***/
var title = 'Young Days';
var artist = 'Vivian Paul';
var durationInSecs = 180;
var genre = 'Afro Soul';
var album = {
title: 'Young Life',
yearReleased: '10-01-1999',
label: 'FireTune Records',
published: true,
};
var stats = {
rating: 7,
airplay: 700,
getAirplay : function(){
console.log('Played '+ this.airplay+ ' times across all airwaves.')
}
};
var otherTracks = ['A kiss from a rose', 'Mind Games', 'One more night','Old days','Watch Men'];
console.log(title);
console.log(artist);
console.log(durationInSecs);
console.log(genre);
console.log(album);
console.log(stats);
console.log(otherTracks);</script></body>
</html>
/***
JS Homework #1
Name: Kofi Cypher
Email: [email protected]
***/
var title = 'Young Days';
var artist = 'Vivian Paul';
var durationInSecs = 180;
var genre = 'Afro Soul';
var album = {
title: 'Young Life',
yearReleased: '10-01-1999',
label: 'FireTune Records',
published: true,
};
var stats = {
rating: 7,
airplay: 700,
getAirplay : function(){
console.log('Played '+ this.airplay+ ' times across all airwaves.')
}
};
var otherTracks = ['A kiss from a rose', 'Mind Games', 'One more night','Old days','Watch Men'];
console.log(title);
console.log(artist);
console.log(durationInSecs);
console.log(genre);
console.log(album);
console.log(stats);
console.log(otherTracks);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment