riku
2023-12-26 aa1f56d5ef2d48b980a2fab3e88379efbe09b0d1
src/test.js
@@ -1,17 +1,26 @@
const shape = {
  radius: 9,
  d() {
    return this.radius * 2;
  },
  p: () => 2 * Math.PI * this.radius,
};
// const shape = {
//   radius: 9,
//   d() {
//     return this.radius * 2;
//   },
//   p: () => 2 * Math.PI * this.radius,
// };
console.log(shape.d());
console.log(shape.p());
// 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);
}
// 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);