I tried this:
var fieldValues = currentItem.get_fieldValues();
But it returns [object object]. How can I see through this without know the column name?
You can use below script.
var fieldValues = currentItem.get_fieldValues();
console.log(JSON.stringify(fieldValues));
Once script is executed second statement will print the data in console in readable format.