LoginSignup
0
1

More than 5 years have passed since last update.

프리미티브의 메쏘드

Posted at
file.js
// 프리미티브는 가능한한 빠르고 가볍다.
let john = {
    name: "John",
    sayHi: function() {
        alert("Hello");
    }
}

john.sayHi(); //Hello
file.js
//프리미티브의 메쏘드
let str = "Hello";
alert(str.toUpperCase()) // HELLO 
//문자열 str 는 프리미티브이다.

let n = 1.23456;
alert(n.toFixed(2)); // 1.23
file.js
puts 'code with syntax'
0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1