<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script>
var data = "{ 'name': 'John' }";
var result = JSON.parse(data);
</script>
</body>
</html>
When trying to parse the JSON string in the provided code, an error occurs at the second variable declaration. Why does this happen? (Chrome might display "unexpected token ILLEGAL", while Firefox could show "JSON.parse")