avatar
Antony
1

Codes

10

Answers

Code compilers

Top answers

0
sss
May-30-2023
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
    chrome.tabs.sendMessage(tabs[0].id, {type:"getText"}, function(response){
        alert(response)
        $("#text").text(response);
    });
});
0
kien5620
February-28-2022
// Example usage for: Ternary Operator
$action = $_POST['action'] ?: 'default';

// The above is identical to this if/else statement
if (empty($_POST['action'])) {
    $action = 'default';
} else {
    $action = $_POST['action'];
}
0
python hello world
February-28-2022
print("This line will be printed.")
You are using an outdated browser. Please upgrade your browser to improve your experience.script.pysolution.pyIPython ShellPlots1print("This line will be printed.")XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXIPython ShellPlots1In [1]: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 0" class="ng-hide">   0" class="ng-binding ng-hide">1/0  0">0/0 = (plots.length - 1)" disabled="disabled"> Hint Solution Run  Session Inactive
0
python hello world
February-18-2022
x = 1
if x == 1:
    # indented four spaces
    print("x is 1.")
You are using an outdated browser. Please upgrade your browser to improve your experience.script.pysolution.pyIPython ShellPlots1234x = 1if x == 1:    # indented four spaces    print("x is 1.")XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXIPython ShellPlots1In [1]: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 0" class="ng-hide">   0" class="ng-binding ng-hide">1/0  0">0/0 = (plots.length - 1)" disabled="disabled"> Hint Solution Run  Session Inactive
0
python hello world
February-18-2022
print("Goodbye, World!")
              print("Hello, World!")
              test_output_contains("Hello, World!")
success_msg('Great job!')
            You are using an outdated browser. Please upgrade your browser to improve your experience.script.pysolution.pyIPython ShellPlots1print("Goodbye, World!")XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXIPython ShellPlots1In [1]: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 0" class="ng-hide">   0" class="ng-binding ng-hide">1/0  0">0/0 = (plots.length - 1)" disabled="disabled"> Hint Solution Run  Session Inactive
0
đâsđsa
February-18-2022
const array = [1, 2, 3];
const index = array.indexOf(2);
if (index > -1) {
  array.splice(index, 1);
}
0
java123456
February-17-2022
public class Main {
  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}
0
ádsadasd
February-14-2022