Obama first prez to publicly code

Andrew Harrer | Bloomberg | Getty Images

President Barack Obama participates in an 'Hour of Code' event with middle-school students including Adrianna Mitchell in the Eisenhower Executive Office Building next to the White House in Washington, D.C.

President Barack Obama became the first occupant of the Oval Office to publicly write a line of code on Monday.

Kicking off Code.org's Hour of Code campaign and Computer Science Education Week from the White House, Obama wrote a single line of JavaScript.

Read MoreCashing in on the coding revolution

This is what the president wrote, according to Code.org CEO Hadi Partovi:

moveForward(100);

The code, which included a predefined function for a tutorial using characters from Disney's "Frozen," moved a figure 100 pixels.

According to Partovi, Obama "asked if he needs to type the F in upper-case, and he got the () and the ; right too, he was very precise and didn't make a typing mistake."

Read MoreThe job skills gap starts in high school

See more here:
Obama first prez to publicly code

Related Posts

Comments are closed.