1.Write a function in JavaScript that replaces the getElementByID with a $. 2.Wr
ID: 665447 • Letter: 1
Question
1.Write a function in JavaScript that replaces the getElementByID with a $.
2.Write a JavaScript that will write the variable MyName on the screen and if JavaScript is not supported or disabled it will print "You need some JavaScript."
3.Write JavaScript that will call a class named theCar and used the method inside it called startItUp, you will pass it the variable TheKey.
4. Write a JavaScript statement that will run document.write("Your Right") if the variable Name is "Me" and the variable Correct is true or the variable Guesses is less then 3.
5. Write a JavaScript class called TheClass that contains a method called theAlert that pops up an alert saying "Boo"
Explanation / Answer
This question has lot of subparts. Please post one more question:
1)
3)
var Car = function (name){
//private properties
var priv = {};
//Public properties
this.name = name;
//Public methods
this.startItUp = function(){
alert('hello');
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.