Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is possible to use string operators in JS without relying on 'eval()' or 'new Function()' functions. You can use built-in String methods like 'concat()', 'slice()', 'toUpperCase()', 'toLowerCase()', 'replace()', 'indexOf()', 'split()', and many others to manipulate strings without the need for eval or new Function. Additionally, you can use regular expressions to perform complex string operations like pattern matching and replacing.