How do I create a table via JavaScript for HTML?

  • 0
    I am trying to create a table via js, but everything adds up to one column.

    Js code:
    $.each(responseJson, function (index, flights) {

    HTML code:
    <table id="tableDiv">

    JavaScript Anonymous, May 22, 2020

  • 1 Answers
  • 0
    - Your table structure is not correct

    - backticks `` allow you to split the string into parts. hence you can write html without a thousand append, and use variables without concatenation: $ {tut_peremennaya}

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!