A. numbers are quantities, just like you're used to. You can do math with them.
b. strings are sequences of characters, like the letters a-z, spaces, and even numbers. These are all strings: "Ryan", "4" and "What is your name?" Strings are extremely useful as labels, names, and content for your programs.
To make a number in your code, just write a number as numerals without quotes: 42, 190.12334.
To write a string, surround the string with quotes: "What is your name?"
Write a string with at least 3 words and find the length of the string. Length counts every character in the string—including spaces!
kas man ir jādara?
Danalabi miniblogs
- 0
Danalabi 02.01.2013. 18:33
- 0
... vismaz valodu pasaki.
Uzraksti teikumu no 3 vārdiem un nosaki teikuma garumu simbolos. - 0
- 0
Write code that will evaluate true if I'm coding like a champ! has more than 10 characters.
Man nesanāk :s - 0
Wtf.
Find the 4th to 7th letter of the string "wonderful day".
"wonderful day".substring(4,7)
un viņš neņem pretī.
P.S Pie examples rakstīts, ka nevajag iekavas pie wonderful day.
Ielogojies vai izveido profilu, lai komentētu!