---
date: 2020-11-11
id: b7195c0a-eafb-40e6-803f-8a25a06b6658
title: JavaScript TypeError
---

## TypeError

``` javascript
('1.2').toPrecision(1); // TypeError: '1.2'.toPrecision is not a function
```
