StringbeginnerString(42) // β '42'
String(true) // β 'true'
String(null) // β 'null'
String(undefined) // β 'undefined'Use String() to safely convert any value to its string representation.
Unlike template literals via concatenation, String(null) β 'null' and String(undefined) β 'undefined'.
Challenge: Implement toStr(val) that uses String(val) and returns the result.
toStr(null) // β 'null'
toStr(undefined) // β 'undefined'