Write a javascript function that takes a string and checks


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.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a javascript function that takes a string and checks
Reference No:- TGS03261632

Expected delivery within 24 Hours