8 kyu

Is integer safe to use?

4,206 of 4,543priyankaherur

Description:

Not all integers can be represented by JavaScript/TypeScript. It has space to to represent 53bit signed integers. In this Kata, we've to determine if it is safe to use the integer or not. Make use of the latest ES6 features to find this.

SafeInteger(9007199254740990) //true
SafeInteger(-90) //true
SafeInteger(9007199254740992) //false
Fundamentals

Stats:

CreatedJul 14, 2015
PublishedJul 14, 2015
Warriors Trained5720
Total Skips138
Total Code Submissions7601
Total Times Completed4543
JavaScript Completions4206
TypeScript Completions421
Total Stars46
% of votes with a positive feedback rating92% of 958
Total "Very Satisfied" Votes820
Total "Somewhat Satisfied" Votes122
Total "Not Satisfied" Votes16
Ad
Contributors
  • priyankaherur Avatar
  • jhoffner Avatar
  • kazk Avatar
  • vguzev Avatar
  • JohanWiltink Avatar
  • Voile Avatar
Ad