-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01file.js
25 lines (18 loc) · 908 Bytes
/
01file.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// IDEA: printing hello world in console
// NOTE: 'filter method' will filter out value according to the give condition
// BUG: 1. JavaScript is a Oops language
// TODO:
// FIXME:
// BUG: Variables
// TODO: console.log() can print something on console
console.log("Hello World");
console.log("Hello, World");
// NOTE: Single Line Comment: It is represented by // (double forward slash)
// NOTE: Multi-Line Comment: Slash represents it with asterisk symbol as /* write comment here */
// HACK: String Important Interview Question?
// INFO: 1) What is the output of 10+20+"30" in JavaScript?
// => 3030 because 10+20 will be 30. If there is numeric value before
// and after +, it treats as binary + (arithmetic operator).
// INFO:2) What is the output of "10"+20+30 in JavaScript?
// => 102030 because after a string all the + will be treated as
// string concatenation operator (not binary +).