Strange ways to keep an endless high CPU usage
JavaScript

Even JavaScript beginners should understand the code below!

// JavaScript for Beginners
// Variables, for loops

// The line below will set a global variable called "x" to 90
// Note: never use this style of code. It is evil!
х = 90;

// The line below will set a local variable called "x" to 90
var x = 90;


for (var х=0; х&lt;10; x++) {
  console.log('JS for beginners: this is iteration #' + х);
}


Warning


   It produces an infinite loop
 Don't run it in your browser unless you know how to kill the tab/process or restart the machine :)


How does it work?


   There are two kinds of variable names in the code:
 1. the normal 'x' which can be found on the keyboard
 2. a cyrillic 'х': http://en.wikipedia.org/wiki/%D0%A5