Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Char comparison solution in Clear category for [old] Secret Message by Joni_Braslaver
"use strict";
function findMessage(data) {
return [...data].filter(char => char <= 'Z' && char >= 'A').join('')
}
var assert = require('assert');
if (!global.is_checking) {
console.log('Example:')
console.log(findMessage("How are you? Eh, ok. Low or Lower? Ohhh."))
assert.equal(findMessage("How are you? Eh, ok. Low or Lower? Ohhh."), "HELLO", "hello");
assert.equal(findMessage("hello world!"), "", "Nothing");
assert.equal(findMessage("HELLO WORLD!!!"), "HELLOWORLD", "Capitals");
console.log("Coding complete? Click 'Check' to review your tests and earn cool rewards!");
}
Oct. 9, 2019