Code error message when creating an expandable text box

Thank you Fridman, but in order to make it work, I had to use the procedure from Wix help to add an onClick Event Handler.
See below:

let fullText150; // variable to hold the full text
let shortText150; // variable to hold the short version of the text
// For full API documentation, including code examples, visit Velo API Reference - Wix.com
$w.onReady( function () {
// how many characters to include in the shortened version
const shortText150Length = 150;
// read the full text and store it in the fullText variable
fullText150 = $w(“#text74”).html;
// grab the number of characters defined in shortTextLength and store them in the shortText variable
shortText150 = fullText150.substr(0, shortText150Length) + “”;
// set the contents of the text element to be the short text
$w(“#text74”).html = shortText150;
});
export function button31_click_1(event) {
// check the contents of the text element
if ($w(“#text74”).html.length < fullText150.length) {
// if currently displaying short text, display the full text
$w(“#text74”).html = fullText150;
$w(“#button31”).label = “Show less”;
} else {
// if currently displaying full text, display the short text
$w(“#text74”).html = shortText150;
$w(“#button31”).label = “Show more”;