pull/138/merge
Swati Singh 7 months ago committed by GitHub
commit fce3a4fd20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -205,7 +205,7 @@ First, let us write on the head part of the page.
<head>
<title>30DaysOfScript:Internal Script</title>
<script>
console.log('Welcome to 30DaysOfJavaScript')
console.log('Hello, World!')
</script>
</head>
<body></body>
@ -223,7 +223,7 @@ This is how we write an internal script most of the time. Writing the JavaScript
<body>
<button onclick="alert('Welcome to 30DaysOfJavaScript!');">Click Me</button>
<script>
console.log('Welcome to 30DaysOfJavaScript')
console.log('Hello, World!')
</script>
</body>
</html>
@ -311,6 +311,18 @@ const PI = 3.14 // Not allowed to reassign PI to a new value
// PI = 3.
```
```js
const x = 10;
if (x > 10) {
const y = 15;
} else {
const y = 20;
}
console.log(y); // y is not accessible because const and let are block scoped.
```
### 2. Data types
If you do not feel comfortable with data types check the following [link](https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/02_Day_Data_types/02_day_data_types.md)

Loading…
Cancel
Save