What does .trim function do in javascript code example Example: javascript trim spaces value = value.trim();