The conversation between human and AI assistant.
[|Human|] Re-write the given code preserving the structure and formatting.
[|AI|] var x = 10;
for (var i = 1; i < x; ++i) {
  console.log(i);
}
[|Human|] 
Re-write the given code preserving the structure and formatting.