Developer Console Error

The following message popped up when previewing the shopping page of my site. I do not have any coding experience. It would be appreciated if someone is able to explain the nature of the problem and how to solve it.


And I would like to ask is the code affect the font size of the number being shown?

Thank you.

Hi,
Can you please paste your code here ?
Roi

public/pages/p42wv.js: Unexpected token, expected ; (1:7) > 1 | 30.9150.575 5// For full API documentation, including code examples, visit http://wix.to/94BuAAs | ^ 2 | 3 | 4 | export function convertCurrency_click(event, $w) {Loading the code for the Product Page page. To debug this code, open p42wv.js in Developer Tools.There was an error in your scriptTypeError: n is not a function. (In ‘n()’, ‘n’ is null)

30.9150.575 5// For full API documentation, including code examples, visit Velo API Reference - Wix.com

export function convertCurrency_click(event, $w) {
//Add your code for this event here:
var url = ‘https://api.fixer.io/latest?base=’;
var country = $w(“#amountConvert”).value;
var fullUrl = url + country;
var symbol = $w(“#amountConvert2”).value;
fullUrl = fullUrl + ‘&symbols=’ + symbol;

fetch(fullUrl, {method: ‘get’})
.then(response => response.json())
.then(json => $w(“#resultCurrency”).text = ((json.rates[symbol]*$w(“#inputAmount”).value).toFixed(2)).toString());

}

Hi,
In line number 1 you have some numbers before the “//”. delete them. it should cover the first error line in the console.
Roi.