Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
❮ Previous JavaScript Global Functions Next ❯ Example Parse different strings: var a = parseInt("10") + "";var b = parseInt("10.00") + ""; var c = parseInt("10.33") + "";var d = parseInt("34 45 66") + ""; var e = parseInt(" 60 ") + "";var f = parseInt("40 y...
JavaScript Java C++ a="3"b="4"print(a+b) Run Example » What data types you have available depends on the programming language you are using, but the most common data types are: String (text) Integer (whole number) Float (decimal number) ...
Take String Input You can also get a string entered by the user: Example Output the name of a user: // Create a string charfirstName[30]; // Ask the user to input some text printf("Enter your first name: \n"); // Get and save the text ...