title: Create Excel Format Output using HTML and JavaScript
body: <p>I had interview and question asked was:<br/></p>
  
  <p>Write a JS plugin that can take cell and value as input and render excel format output on browser. For example, <br/></p>
  
  <p>Given Input (cell and value):</p>
  
  <pre><code>J3 = 5
  A2 = 20
  K1 = 10
  </code></pre>
  
  <p>Output on browser should be in excel format</p>
  
  <pre><code>   A   B   C ....... J    K .......
  1                         10
  2  20 
  3                    5
  ..
  </code></pre>
  
  <p>I Was looking for correct solution for the problem.</p>
  
  <p>I tried solving this problem (writing psudeo code)</p>
  
  <pre><code>var  cell = {"J3": 5, "A2":20, "K1": 10}
  
  // Function they will call for generate excel style table
  generateExcel(cell, selector) {     
  1.  create blank table  which has A-Z column (with selector as A-Z resp) and 1 to 100 rows (with selector as 1 to 100 resp)
  2. Loop through each cell and for each cell
    2.1 find the column (J) and row (3)
    2.2 Add/replace value in that TD
  
  3. Once all the information from cell in enter in table,  print the table in the document at given selector        
  </code></pre>
  
  <p>}</p>
  
  <p>They said it won't be efficient for huge number of cell inputs. I suggest that we can use Matrix create table</p>
  
  <pre><code>   A   B...    J  K .... 
  1 [               10      ]
  2   20
  3              5   
  </code></pre>