Question #28

Author: admin
tags: JavaScript  
'use strict';
let x;
x = 'string';
x = 2.41;
x = { x: x };
x = { x: x };
x = 2,41;
On which line of code does the error occur?
On the 3rd: x = 'string';
On the 4th: x = 2.41;
On the 5th: x = {x: x};
On the 6th: x = {x: x};
On the 7th: x = 2,41;
There will be no error
If you thought that the error is in the seventh line, then there the comma is the comma operator.
Rate the difficulty of the question:
easyhard