encodejavascriptstring()# Syntaxencodejavascriptstring( string ) Returns# Returns the encoded string. Parameters# Parameter Description string the string that will be encoded.