i'm a beginner in JS and was wondering what is the syntax of an arrow function with an if statement with a regular function such as function
getStringLength(string){
let stringLength;
if (string.length === 1){
stringLength = `La chaîne contient qu'un seul caractère`;
} else {
stringLength = `La chaîne contient ${string.length} caractères`;
}
return stringLength;
}