Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Secret Message by Sim0000
"use strict";
function findMessage(data) {
result = ""
for(i = 0; i < data.length; i++){
c = data.charAt(i)
if(c != c.toLowerCase()) result += c
}
return result
}
var assert = require('assert');
if (!global.is_checking) {
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!");
}
July 7, 2016
Comments: