xxxxxxxxxx
%%html
<p>Calculation the number of symbols in strings:</p>
<p id='script_output'>evaluate the next code cell</p>
xxxxxxxxxx
%%javascript
function getInteger(min,max) {
return Math.floor(Math.random()*(max-min+1))+min;};
var string='@@@***морозИсолнцеДЕНЬчудестный***@@@'+getInteger(1,19);
document.getElementById('script_output')
.innerHTML=string+' - '+string.length+' symbols';
No comments:
Post a Comment