When you write a function, you are formally creating a function definition.
举一反三
- You create a Web page that contains the following image element. You need to write a JavaScript function that will dynamically change which image is displayed. Which code segment should you use?() A: function changeImage() {myImage.src = "image2.png"; } B: function changeImage() { document.getElementById("myImage").src = "image2.png"; } C: function changeImage() { getElementById("myImage").src = "image2.png"; } D: function changeImage() { window.getElementById("myImage").src = "image2.png"; }
- What function is money serving when you buy a ticket to a movie? ______、
- When you think about the function of business development, it should (think)_________ of as a marketing function.
- Choose the factors you consider when buying a cellphone? A: band B: type C: function D: price
- The function itself is called in function definition, which is a recursive call of function.