We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,
How can I achieve the following pseudo code in p5js to create substring, as I couldn't find anything function which has similar effect of substring() in Processing3?
function setup() {
var str = "0930";
str.substring(0, 2);
}
Answers
https://developer.Mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
https://Processing.org/reference/String_substring_.html
http://docs.Oracle.com/javase/8/docs/api/java/lang/String.html#substring-int-
Thanks, I got it