How do I do a function that receives a parameter called val of type string and returns a boolean indicating if the string length is greater than 5; [closed]

function isLengthGreaterThan5(val){

    Part I don't know how to do

}

Examples:

'tests' => true

'test' => false

'ok' => false