Sign in
third-party-mirror
/
orbit
/
refs/heads/master
/
.
/
qt-everywhere-src-5.15.1
/
qtdeclarative
/
tests
/
manual
/
v4
/
fun.2.js
blob: c3fb613ac6094aec3c956376239fef7deb0bea3a [
file
] [
log
] [
blame
]
function
Point
(
x
,
y
)
{
this
.
x
=
10
this
.
y
=
20
}
Point
.
prototype
=
{
print
:
function
()
{
print
(
this
.
x
,
this
.
y
)
}
}
var
pt
=
new
Point
(
10
,
20
)
print
(
pt
.
x
,
pt
.
y
)
pt
.
print
()