Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 902 Bytes

readme.md

File metadata and controls

42 lines (31 loc) · 902 Bytes

JavaScript Probably ?== Operator

This is the project to create a "probably" operator which will return a boolean based on the probabilty of the two operands being the same.

Examples:

  1. Result returned based on datatypes
const int = 9;
const float = 9.88;

int ?== float // returns true

// but...

float ?== int // returns false
  1. Result returned based on value that will be assigned to the variable.
let int;
let float;

int ?== float // returns true at this point
float ?== int // returns true at this point

int = 5
float = 5.4

// goes back to the two expressions and turns the first true and second false
  1. Predicting results based on quantum computing future telling.
/*
 Some quantum computing to predict future
*/

int ?== float // returns true based on predictions

Warning

THE RESULTS RETURNED BY THE OPERATOR ARE UNPREDICTABLE.