Commit 774a58ae authored by MohammadAli Keshavarz's avatar MohammadAli Keshavarz

Variables and data types

parents
<!DOCTYPE html>
<html lang ="en">
<meta charset="UTF-8">
<title>SLM</title>
<body>
<h1>hello world</h1>
</body>
<script src ="script.js"> </script>
</html>
\ No newline at end of file
/*****************************
* Variables and data types
*/
var firstName = 'John';
console.log(firstName);
var lastName = 'Smith';
var age = 28;
var fullAge = true;
console.log(fullAge);
var job;
console.log(job);
job = 'Teacher';
console.log(job);
// Variable naming rules
var _3years = 3;
var johnMark = 'John and MArk';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment