Question #120

Author: admin
tags: TypeScript  
let x: string;

x = 'hello';       // #1
x = String(5);     // #2
x = 500;           // #3
x = null;          // #4
x = {}.toString(); // #5
Which lines can cause an error with the message is not assignable to type?
#1
#2
#3
#4
#5
Rate the difficulty of the question:
easyhard