Problem
Write a JavaScript function that takes a string and checks if its length is greater than 3. If the string length is greater than 3, the function should return a substring that consists of the first 3 characters of that string. If the string length is less than 3, then the function should display the text "string too short" using an alert method.