- 1

What is a hard code in a function?

function abc(id){ $("#somevalue" + id).someevent(); } is there anything called hard code in this function?

16th Mar 2018, 4:05 PM
Amit Sharma
Amit Sharma - avatar
2 Answers
+ 5
Hard coding (also hard-coding or hardcoding) is the software development practice of embedding an input or configuration data directly into the source code of a program or other executable object, or fixed formatting of the data, instead of obtaining that data from external sources or generating data or formatting in the program itself with the given input.
16th Mar 2018, 4:16 PM
Scooby
Scooby - avatar
- 1
somebody said this is hard code if you contactnate anything in passed value which is currently your "id"
16th Mar 2018, 4:06 PM
Amit Sharma
Amit Sharma - avatar