jQuery DataTable test

HTML

<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<link rel="stylesheet" href="https://datatables.net/release-datatables/media/css/jquery.dataTables.css">
<script src="https://datatables.net/release-datatables/media/js/jquery.dataTables.js"></script>
<table id="tbl" > 
</table>

JavaScript

function FunctionName(x) {
  return "Hi, " + x;
}

$("#tbl").dataTable({
  columns: [
    {
      title: "name",
      data: "name",
      render: function(data) {
        return FunctionName(data);
      }
    },
    { title: "number", data: "num" }
  ],
  data: [{ name: "foo", num: 1 }, { name: "bar", num: 2 }]
});