Professional Documents
Culture Documents
Salesforce+LWC+Integration+Project+Part+3
Salesforce+LWC+Integration+Project+Part+3
req.setEndpoint('https://api.collectapi.com/imdb/imdbSearchByName?
query=golmaal');
// Set the HTTP method (GET, POST, etc.)
req.setMethod('GET');
// Set any request body if necessary
// req.setBody('Your request body here');
Padding:
Padding is said to be the inner space of an
element, i.e., the padding is the space inside of the
element's border.
Margin:
Margin is said to be the outer space of an element, i.e.,
the margin is the space outside of the element's
border.
<script>
let txt = '{"name":"John", "age":31, "city":"New York"}';
let obj = JSON.parse(txt);
document.getElementById("demo").innerHTML = obj.name + ", " +
obj.age;
</script>
</body>
</html>