riku
2024-03-21 5f20f4bba739f0f81101a2c1d99f494647125e05
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
26
27
28
29
// const shape = {
//   radius: 9,
//   d() {
//     return this.radius * 2;
//   },
//   p: () => 2 * Math.PI * this.radius,
// };
 
// console.log(shape.d());
// console.log(shape.p());
 
// const str = 'abc';
// if (str[0] >= 'a' && str[0] <= 'z') {
//   let a = parseInt(str[0]);
//   a -= 32;
//   console.log(a);
// }
 
 
// let a = 4
// let b = new Number(4)
// let c = '4'
// console.log(a == b);
// console.log(a === b);
// console.log(a == c);
// console.log(b === c);
 
var val = 'smtg'
console.log('Value is' + ((val === 'smtg') ? 'Something' : 'Nothing'));