Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shouter(whatToShout) {
- //why not shouter.toUpperCase???
- return `${whatToShout.toUpperCase()}!!!`
- // your code here
- }
- /* From here down, you are not expected to
- understand.... for now :)
- Nothing to see here!
- */
- // tests
- function testShouter() {
- const whatToShout = 'fee figh foe fum';
- const expected = 'FEE FIGH FOE FUM!!!';
- if (shouter(whatToShout) === expected) {
- console.log('SUCCESS: `shouter` is working');
- } else {
- console.log('FAILURE: `shouter` is not working');
- }
- }
- testShouter();
Add Comment
Please, Sign In to add comment