โ Back to Printing
Question 86
Print a Substring
Print a Substring
The variabletextholds"JavaScript". Useslice()to print only the first four characters so the output is exactly: Java
Expected Output:
Java
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.