"Show more" button is no working, even though following the tutorial on Wix #showmorelink #fullText #shortText

I’m trying to put a “show more” button under the text. I used this wix tutorial: https://support.wix.com/en/article/corvid-tutorial-creating-a-show-more-link
I copied the link from the page and pasted it onto my page in the code. Here is the text:

let fullText; // variable to hold the full text
let shortText; // variable to hold the short version of the text
// how many characters to include in the shortened version
const shortTextLength = 40;
// read the full text and store it in the fullText variable
fullText = $w(“#button1”).text;
// grab the number of characters defined in shortTextLength and store them in the shortText variable
shortText = fullText.substr(0, shortTextLength) + “…”;
// set the contents of the text element to be the short text
$w(“#button1”).text = shortText;

It says that the “fullText” and “shortText” that the error is that “text” is not exist on “button1”
The button is “#button1”. Can anyone please help me with this problem? Thank you!