Button. onClick not working

Question:
[Velo syntax ]

Product:
[Wix Editor.]

What are you trying to achieve:
[Multi-State Box.
Added PREVIOUS and NEXT buttons.
Trying to return to another state]

What have you already tried:
[Viewed Videos ]

Additional information:
[Clicking on RUN in the Velo script yields an error .
The code in the editor has underlines and is problematic]
$w(‘#nextButton’).onClick((event) => {
console.log(“Buttom was clicked!”);
})
Build Log

deploymentId: a2cf9632-8c4a-43d4-b9ef-ca5009db4097
1/21/2025, 11:10:16 AM
Status: Error

[/pages/Home.ijbu0.js]: public/pages/ijbu0.js: Unexpected token, expected “,” (8:0)
6 |
7 | //*{

8 | $w(‘#nextButton’).onClick((event) => {
| ^
9 | console.log(“Buttom was clicked!”);
10 | })

A. Please format the code using
```js
code here
```

B. It seems you’re not properly closing whatever was opened in the first 7 lines of code, would you please paste the entire page code?

// Velo API Reference: https://www.wix.com/velo/reference/api-overview/introduction

$w.onReady(function () {
console.log(“Hello world!”)
}

("#nextButton").onClick(() => {
		const currentState = $w('#tabBox').currentState.id;
		const stateNumber = Number(currentState.slice(-1));
		// const nextState = tabs[stateNumber + 1];
		let nextState = "tab" + (stateNumber + 1)
		// const nextState = 'tab2';
		console.log("stateNumber=", stateNumber, "nextState=",nextState);
		console.log("currentState=",currentState);
		// Works up to here!!!!!!;
		$w("#tabBox").changeState(nextState);
})

I don’t understand “A” above