I have two files, file1 exports a variable 'not a constant' var x=1 and file2 which imports this variable from it
the problem is that I canno't modify that imported variable even it is not a constant!
file1.js
export var x=1 //it is defined as a variable not a constant
file2.js
import {x} from 'file1.js'
console.log(x) //1
x=2 //Error: Assignment to constant variable