var pm.view= {
tests_enabled: true
};
(function () {
pm.view.methodName1= function () {
};
pm.view.methodName2 = function () {
};
})();
Why do i get an error missing ; before statement on my first line pm.view
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Variable declarations in JavaScript must be one word only, so the
pmobject should usevarfor declaration and then theviewcan be attached to it. Ifpmandvieware being declared at the same time:or if
pmis already defined, just use dot notation to addviewto it: