Advertisement
mtsonkova

Untitled

Jan 15th, 2021
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(firstChar, secondChar){
  2.   let start = Math.min(firstChar.charCodeAt(firstChar), secondChar.charCodeAt(secondChar));
  3.   let end = Math.max(firstChar.charCodeAt(firstChar), secondChar.charCodeAt(secondChar));
  4.   let char = ''
  5.   let output = '';
  6.  
  7.  
  8.  for(let i = start+1; i < end; i++){
  9.    char = String.fromCharCode(i);
  10.      output += char + ' ';
  11.  }
  12.  console.log(output);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement