CJCoding With Joseph

Print a Substring

The variable text holds "JavaScript". Use slice() 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.