say we want make sre or touppercase() method is making se of the built in string .to uppercase() we need to simply spy on code example
Example 1: uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
Example 2: uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase();