Help about this code


#1

Sorry this part of code I need to know the answer for it ... I wrote aScriptrocks and its wrong what is the correct answer .... Thanks


function getAttackString() { 
var foo = "JavaScript"; 
var bar = "rocks!! :-)"; 
return window.btoa(foo+bar).substr(3,12); 
} 
var code = "The code is: "+getAttackString();


#2

Can I have the name of the lesson, or the link?


#3

It's a homework for a js course


#4

Try:

return window.btoa(foo+bar).substr(3,12);

#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.