1374-generate-a-string-with-characters-that-have-odd-counts
DevGod needs to write a blog entry for this problem!
/**
* @param {number} n
* @return {string}
*/
var generateTheString = function(n) {
if(n%2==0){
return 'a'.repeat(n-1) + 'b';
}else{
return 'a'.repeat(n);
}
};