Expert JavaScript Developer Question:

Download Job Interview Questions and Answers PDF

What are fixed-width table and its advantages in JavaScript?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

Fixed width tables are rendered by the browser based on the widths of the columns in the first row, in JavaScript resulting in a faster display in case of large tables. Use the CSS style table-layout:fixed to specify a fixed width table.
If the table is not specified to be of fixed width in JavaScript, the browser has to wait till all data is downloaded and then infer the best width for each of the columns. This process can be very slow for large tables.

Download Expert JavaScript Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you target a specific frame from a hyperlink in JavaScript?Example of using Regular Expressions for syntax checking in JavaScript?