p5.Table getString() Method
The getString() method of p5.Table in p5.js is used to retrieve a String value from the given row and column of the table. The row can be specified by the row ID and the column can be specified by its column ID or column name.
getString( row, column )
Parameters: This method accepts two parameters as mentioned above and described below:
- row: It is a number that denotes the row ID of the row.
- column: It is a String or Number that denotes the column name or ID of the column.
Return Value: This method returns a String which is the value retrieved from the given row and column of the table.
The examples below illustrate the getString() method in p5.js:
Online editor: https://editor.p5js.org/