PLS HELP! Adding JS Code To Wordpress Elementor

Hi lovely folks,

I don’t know if the javascript code below is correct because I followed all the methods I found online for inserting JS codes into Wordpress Elementor pages, but it still won’t work.

Here goes the code:

Can someone kindly help out and advise me on what I may have missed out.

Thanks a bunch.