Advertisement
bolo17

Untitled

Mar 30th, 2022
966
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Algorithms and Data Structures
  2. Basic JavaScript
  3. Declare String Variables
  4. Previously you used the following code to declare a variable:
  5.  
  6. var myName;
  7. But you can also declare a string variable like this:
  8.  
  9. var myName = "your name";
  10. "your name" is called a string literal. A string literal, or string, is a series of zero or more characters enclosed in single or double quotes.
  11.  
  12. Create two new string variables: myFirstName and myLastName and assign them the values of your first and last name, respectively.
  13. for more: https://www.clictune.com/eBIH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement