Yes, I can see why that is confusing. And Paul__B and myself may be confusing you as well, and I apologize.
The "10k resistor" mentioned in the code is a resistor in the simplest definition, but it is a potentiometer, which is like a variable resistor divider.
I have here an LCD from SparkFun, which has a resistor already mounted for the LED backlight. Without any power for the backlight, I can see the blocks mentioned by Paul. They are not so easy to see, but still capable of a "Hello World" test. With light, they are easier to see...
But I also have here an LCD I ordered from Mouser that does NOT have the resistor already mounted. So I use a 150 ohm resistor in my circuit.