Skip to content

jiaoqiqi/lcd-digits-jiaoqiqi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lcd-digits


Your task is to create an LCD string representation of an integer value using a 3x3 grid of space, underscore, and pipe characters for each digit. Each digit is shown below (using a dot instead of a space)

._.   ...   ._.   ._.   ...   ._.   ._.   ._.   ._.   ._.
|.|   ..|   ._|   ._|   |_|   |_.   |_.   ..|   |_|   |_|
|_|   ..|   |_.   ._|   ..|   ._|   |_|   ..|   |_|   ..|

Example: 910

._. ... ._.
|_| ..| |.|
..| ..| |_|

/*function getLCDLines(numbersArr,LCDNumber) {

var LCDLines='';

for(var i=0 ; i<numbersArr.length ; i++)
{
    LCDLines+=LCDNumber[numbersArr[i]];
}

return LCDLines;

} */

About

lcd-digits-jiaoqiqi created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • HTML 0.1%