Can I use standard inbuilt Javascript functions(better lack of words using standard functions) in my client side controller?
I did a search on standard javascript functions and got this as the top link:
https://www.tutorialspoint.com/javascript/javascript_builtin_functions.htm
I started playing with some functions and all these functions work as expected.
1) Date
var date_v = Date();
component.set("v.date_val",date_v);
2) indexof
var index = str1.indexOf( "one" );
component.set("v.indexval",index);
Does this mean that I can use any JS function in the controller?
Please clarify
var date_v = new Date()
(don't forget the new).