What is wrong with my code?

<!DOCTYPE html>
	<title>Onclick Attribute and Hyperlinks 3</title>
	function userId(name) {
	if(name != "Rodrigo");
	<a href="https://www.google.co.uk" onclick="return false;">;
	Click here to visit Google
	else {
	<a href="https://www.google.co.uk">;
	Click here to visit Google

Please post a link to the exercise. Thanks.

The semi-colon is terminating the statement.

if (name !== "Rodrigo") {

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.