increment the value in a field by 1 js code example Example: javascript increment x = 0; //pre-increment ++x; //post-increment x++;