This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
tag: "div", // HTML Tag Name | |
props: {...}, // Tag Attributes | |
children: [{ // Array of Children | |
tag: "div", | |
props: {...}, | |
children: [...] | |
} | |
...] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CircleIndicator : View { | |
private val paint = Paint() | |
private var centerX = 0F; | |
private var centerY = 0F; | |
private var radius = 0F; | |
constructor(context: Context) : super(context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createVariable() { | |
x = 10; | |
} | |
function updateVariable() { | |
x++; | |
}; | |
function printVariable() { | |
console.log(x) |