Search the Community
Showing results for tags 'Suggestions'.
-
Hello, this is my first post on the forums after learning HTML and JavaScript for the past 2 weeks. I have a suggestion to make for the JavaScript Functions tutorial, specifically learning how to call a function. The tutorial is very good overall and I am enjoying learning about HTML & JavaScript. As this is my first exposure to coding, my suggestion may be out of place or unusual that I did not know this particular information. However, the JavaScript tutorial never to my knowledge taught me how to call a function the way Exercise 1 at the bottom of the Function tutorial (https://www.w3schools.com/js/js_functions.asp) asked me to do. The answer to call the function as Exercise 1 asks you to do is to insert the code "myFunction();" after the curly bracket however all throughout the JavaScript and particularly the Function tutorial, the user had been taught to call functions by inserting the code "document.getElementById("demo").innerHTML = myFunction();" after the curly bracket. The "return" statement was not used in Exercise 1 as I had felt I was most comfortable using. I would suggest strongly that some line or section be inserted in the JavaScript Function tutorial to teach the method of using "myFunction();" to call a function, as I did not understand that functionality and thought the Exercise was impossible to figure out without looking at the answer. Maaaybe the Exercise is designed to teach you to call a function using "myFunction();" but if that is true, in my opinion it is a poor way to teach that tool. Thank you for your time and in general a great website.
- 2 replies
-
- javascript
- functions
-
(and 4 more)
Tagged with:
-
I am a newbie in w3schools. Once I tried to attach a .txt file with my post. But I am sorry to say that I couldn’t do this. It only showed the massage “Error This upload failed”. Please help me to solve the problem. Beside the “Attach This File” option, a massage is shown like “Used 0bytes of your 500K global upload quota (Max. single file size: 500K)” My question is what is the meaning of 500k? Thanks in advance!
-
Hi. I've had this site up for a while now, and this is the first time I'm asking for critiques. It's a wordpress theme I made. Any suggestions would be appreciated. http://khaistatus.com/
-
If you make a chat room for W3Schools That would be so cool