This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<p class='title'>Piano Player</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Chore Door!</title> | |
<link href="./style.css" rel="stylesheet" type="text/css"> | |
<link href="https://fonts.googleapis.com/css?family=Work+Sans" rel="stylesheet" type="text/css"> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { countCharacter, capitalizeFirstCharacterOfWords, reverseWord, reverseAllWords, replaceFirstOccurence, replaceAllOccurrences, encode, palindrome, pigLatin} from './messageMixer'; | |
function displayMessage() { | |
console.log(countCharacter("What is the color of the sky?", "t")); | |
console.log(capitalizeFirstCharacterOfWords("What is the color of the sky?")); | |
console.log(reverseWord("What is the color of the sky?")); | |
console.log(reverseAllWords("What is the color of the sky?")); | |
console.log(replaceFirstOccurence("What is the color of the sky?", "sky", "water")); | |
console.log(encode("What is the color of the sky?")); | |
console.log(palindrome("What is the color of the sky?")); | |
console.log(pigLatin("What is the color of the sky?", "yq ")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Media { | |
constructor(title) { | |
this._title = title; | |
this._ratings = []; | |
this._isCheckedOut = false; | |
} | |
// getters for title, isCheckedOut and ratings | |
get title() { | |
return this._title; |