I need to pass the value of the javascript function below to a variable in javascript but its only shows the value in a console. it does not pass the function values (somevar) to the display variables
function functionThatNeedsRowsData(values){
var somevar = values;
// console shows the value
console.log(somevar);
}
//Now display the value of (somevar) in a function and pass it to a variable not working
var display= functionThatNeedsRowsData();