riku
2023-11-10 2a53d3e6774678eeebf2b0f028c6aec2c70a4774
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}