1
<script>
2
class Test
3
{
4
static display()
5
{
6
return "static method is invoked"
7
}
8
static display()
9
{
10
return "static method is invoked again"
11
}
12
}
13
document.writeln(Test.display());
14
</script>