CHAPTERFIVE
Be focused and you will archive alot. choose your ON javascript
Explore moreBe focused and you will archive alot. choose your ON javascript
Explore moreLorem ipsum dolor sit amet consectetur adipisicing elit. Hic odit rem dolorum molestiae fugit deserunt exercitationem recusandae, itaque ratione harum sit repellat dolor temporibus deleniti non voluptatem nostrum quas? Cumque veniam, molestias id natus pariatur dolores aut nemo iure facilis expedita, temporibus exercitationem ullam ex officiis reiciendis quaerat enim consequuntur.
here are the basic three ways of accesing html elements in javascript
gets the element by its id name
get the css selector of the element
gets the element by its tag name
A function is a block of code that runs only when called. It helps reuse code.
Creating a Function
There are three ways to write functions:
* Function Declaration function sayHello() { return "Hello, World!"; }
* Function Expression let sayHello = function() { return "Hello, World!"; };
* Arrow Function (ES6) let sayHello = () => "Hello, World!";
Calling a Function
You must call a function to run it.
document.write(sayHello());
<!DOCTYPE html> <html> <head> <title>Title of the Page</title> </head> <body> <h1>javascript functions</h1> <p id="output"></p> <script> function multiply(a, b) { return a* b; } document.getElementById("output").innerHTML = "5 x 3 = " + multiply(5,3); </script> </body> </html>
vildash network team has had alot of impact on others but here are the vildash network team testimonies and expirience while working with the team
you can now connect and text other users from our database. you just neeed to click bellow to message them
WE HAVE CODE EDITORS FOR LANGUAGES LIKE C, C#, C++, HTML, CSS, javascript, JAVA VISUAL BASIC
We dont just teach you to code we teach you to code and build amazing systems.we are group of expert who wants to promote our field of studies