What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-02 19:31:06
JavaScript String Padding - ECMAScript 2017
// ECMAScript 2017 added two String methods: // padStart and padEnd to support padding at the beginning // and at the end of a string. let text = "5"; text.padStart(4,0) // Returns 0005 Add solution -
Javascript 2022-02-01 00:07:57
javascript all type of data
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
Javascript 2022-01-28 15:51:41
javascript date methods
var d= new Date(); d.getFullYear(); //Get the year as a four digit number (yyyy) d.getMonth(); //Get the month as a number (0-11) d.getDate(); //Get the day as a number (1-31) d.getHours(); //Get the hour (0-23) d.getMinutes(); //Get the minute (0-59) d.g... Add solution -
Javascript 2022-01-24 02:00:56
data type javascript
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
Shell/Bash 2021-11-17 22:19:17
error TS1056
# If you're getting the "script.ts:9:8 - error TS1056: Accessors are only available when targeting ECMAScript 5 and higher." # in typescript compliation you need to change your target for compiling in cmd # like: tsc -t es5 script.ts # or tsc ... Add solution -
Shell/Bash 2021-11-09 10:07:27
Accessors are only available when targeting ECMAScript 5 and higher.
# If you're getting the "script.ts:9:8 - error TS1056: Accessors are only available when targeting ECMAScript 5 and higher." # in typescript compliation you need to change your target for compiling in cmd # like: tsc -t es5 script.ts # or tsc ... Add solution