Browsed by
Tag: web design html

JavaScript Functions

JavaScript Functions

Summary: In this tutorial, you’ll learn how to create a function in JavaScript and invoke/call it or start/make it work or activate it. What is a function? A function is like a machine 1 takes input2 processes it3 gives output If you are a visual person. Here’s a video. If you like reading. Below is the written version of the video. 1 Create a Function in JavaScript To create a function in JavaScript, use the word function Then give your…

Read More Read More

 104 total views

JavaScript String length Property

JavaScript String length Property

Summary: In this tutorial you’ll learn how to use the .length property in JavaScript. Definition and Usage The length property returns the length of a string (number of characters). The length of an empty string is 0. Remember: Strings can be empty, a space or anything you can type on your keyboard. Example