Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 534 Bytes

13-typeconversion.md

File metadata and controls

25 lines (19 loc) · 534 Bytes

type conversion

implicit type conversion /automatic type conversion implicit type conversion me javascript automatic ak type se dusri type me convert karte hain.

  • for example number se string me conversion string se number me convrsion
let x = "20";
console.log(x / 2);

Explicit type and manual type conversion is process me hum manualy type conversion karte hain.

let x = "20";
console.log(Number(x) + 20); // //string to number
let y = 10;
console.log(string(y) + 200); //number to string