Newbie question- How to copy the second word in a text box

Hi
based on katalon.com page:

open | https://www.katalon.com/
storeText | //*[@id=“page-top”]/div[6]/div[1]/div[1]/div/div/div/div/p | textFromPage
runScript | return ‘${textFromPage}’.split(’ ')[1] | secondWord
echo | secondWord

Or if You want to copy to clipboard just search google for “javascript copy to clipboard” and you will have ready to use examples and then just use one of this in Katalon Recorder with “runScript” command