Skip to content

Instantly share code, notes, and snippets.

View athulak's full-sized avatar
:octocat:
Declare variable, not war!

Athul AK athulak

:octocat:
Declare variable, not war!
View GitHub Profile
@athulak
athulak / variables.dart
Created February 17, 2022 10:26
Pass by Value vs Pass by Reference
void main() {
List<int> mithunMark = [10, 10, 10];
//List<int> johnMark = mithunMark;
List<int> johnMark = [...mithunMark];
mithunMark[0] = 20;
mithunMark[1] = 15;
print("Mithun's mark: "+mithunMark.toString());
@athulak
athulak / test.html
Created August 8, 2017 09:47
test file
<script>
alert("Testing Gist");
</script>