Slice-4

 

Javascript Slice function with one parameter:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> var str = "Apples are round, and apples are juicy."; var sliced = str.slice(4); document.write( sliced ); </script> </body> </html>
Output