JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <thead>
        <tr>
            <th>Name</th>
            <th>Order</th>
            <th>Month</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Rahul</td>
            <td>#1</td>
            <td>January</td>
        </tr>
        <tr>
            <td>Yunus</td>
            <td>#2</td>
            <td>April</td>
        </tr>
        <tr>
            <td>Nitin</td>
            <td>#3</td>
            <td>March</td>
        </tr>
    </tbody>
</table>

JavaScript

$(document).ready(function(){
 console.log($('table tbody tr').eq(0).html());
 var newtr=$('table tbody tr').eq(0).clone();
    $('body').append(newtr);
 console.log(newtr.html());
    var op = "";
    var val = "";
    var count = 0;
    $('table tbody tr').eq(0).find('td').each(function(){
        op += $(this).html() + ',';
        count++;
        
    });
    var newTd = "<td colspan=" + count +">"+op+"<td>";
    $('table tbody tr').eq(0).append(newTd);
});