var
Obj = {
val: 10,
str:
'Hello World!'
}
function
funMake() {
document.write(Obj[
'val'
] +
'<br />'
);
'str'
var Obj = { val: 10, str: 'Hello World!' } function funMake() { document.write(Obj['val'] + ''); document.write(Obj['str'] + ''); }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
funMake();