// Sample solution
// Read this code
function makeTags(str) {
return str
.split(' ')
.map(
function(s) {return '<'+s+'>';}
).join('');
}
// Can you guess the result of makeTags("p ul li")?
// Type in your guess, then hit "Run" to check
var myGuess = "<p><ul><li>";
No comments:
Post a Comment